public async Task Update(Client client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } var clientDto = ClientDto.FromDomain(client); this.context.Clients.Update(clientDto); await this.context.SaveChangesAsync(); }
public async Task Update(Client client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } var clientDto = ClientDto.FromDomain(client); this.context.Clients.Update(clientDto); await this.context.SaveChangesAsync(); }