summaryrefslogtreecommitdiff
path: root/Codemerx/Gestor.Infrastructure/Gestor.Infrastructure.Repository.Interface/IClienteTelefoneRepository.cs
blob: 4eea2acc5651af701f2e6ef40f27a2d9c25ebee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Gestor.Infrastructure.Entities.Seguros;
using Gestor.Infrastructure.Repository.Generic;
using Gestor.Model.Domain.Seguros;
using System;
using System.Collections.Generic;

namespace Gestor.Infrastructure.Repository.Interface
{
	public interface IClienteTelefoneRepository : IGenericRepository<ClienteTelefoneDb>
	{
		void Delete(long id);

		List<ClienteTelefone> DeleteFone(long clienteId, List<ClienteTelefone> telefones);

		List<ClienteTelefone> Find(string telefone, long idempresa = 0L);

		List<ClienteTelefone> FindByClienteId(long id);

		ClienteTelefone FindById(long id);

		List<ClienteTelefone> Inserir(List<ClienteTelefone> telefones);

		List<ClienteTelefone> Inserir(List<ClienteTelefone> telefones, Cliente cliente);

		ClienteTelefone Merge(ClienteTelefone telefone);

		List<ClienteTelefone> Merge(List<ClienteTelefone> telefones, Cliente cliente);

		ClienteTelefone SaveOrUpdate(ClienteTelefone telefone);
	}
}