public Task <bool> AddClient(ClientDTO client) { return(Task.FromResult(true)); //return await Task.FromResult(clientDataBase.Add(DTOMapper.Map(client))); }
public async Task <bool> UpdateClient(ClientDTO client, int id) { return(await Task.FromResult(clientDataBase.Update(DTOMapper.Map(client), id))); }
public static IClient Map(ClientDTO clientDTO) { Client client = new Client(clientDTO.ID, clientDTO.Name, clientDTO.Address); return(client); }