public async Task Update(int id, DiaUpdateDto model) { var entry = await _context.Dias.SingleAsync(x => x.DiaId == id); entry.Nombre = model.Nombre; await _context.SaveChangesAsync(); }
public async Task <ActionResult> Update(int id, DiaUpdateDto model) { await _DiaService.Update(id, model); return(NoContent()); }