Exemplo n.º 1
0
        public Task <int> Update(long id, UpdateClientReq entity)
        {
            var client = db.Find(id);

            context.Entry(client).CurrentValues.SetValues(entity);
            return(context.SaveChangesAsync());
        }
Exemplo n.º 2
0
 public async Task <ActionResult <int> > Update(UpdateClientReq req)
 {
     return(Ok(await _clientService.Update(UserId,
                                           req)));
 }