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

            return(client);
        }