Exemplo n.º 1
0
        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();
        }