public async Task Update(int id, EjecutarTareaUpdateDto model) { var entry = await _context.EjecutarTareas.SingleAsync(x => x.EjecutarTareaId == id); entry.TareaId = model.TareaId; entry.CiudadanoId = model.CiudadanoId; entry.DiaId = model.DiaId; await _context.SaveChangesAsync(); }
public async Task <ActionResult> Update(int id, EjecutarTareaUpdateDto model) { await _EjecutarTareaService.Update(id, model); return(NoContent()); }