Пример #1
0
        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();
        }
Пример #2
0
        public async Task <ActionResult> Update(int id, EjecutarTareaUpdateDto model)
        {
            await _EjecutarTareaService.Update(id, model);

            return(NoContent());
        }