public async Task <IActionResult> PutAspectoEvaluar(int id, AspectoEvaluar aspectoEvaluar) { if (id != aspectoEvaluar.Id) { return(BadRequest()); } _context.Entry(aspectoEvaluar).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!AspectoEvaluarExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutRubrica(string id, Rubrica rubrica) { if (id != rubrica.IdRubrica) { return(BadRequest()); } _context.Entry(rubrica).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!RubricaExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <IActionResult> PutEstudiante(string id, Estudiante estudiante) { if (id != estudiante.Identificacion) { return(BadRequest()); } _context.Entry(estudiante).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!EstudianteExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }