public async Task Update(int id, CiudadanoUpdateDto model) { var entry = await _context.Ciudadanos.SingleAsync(x => x.CiudadanoId == id); entry.Nombre = model.Nombre; await _context.SaveChangesAsync(); }
public async Task <ActionResult> Update(int id, CiudadanoUpdateDto model) { await _ciudadanoService.Update(id, model); return(NoContent()); }