public IActionResult Delete(long id) { Aula aula = TempData.Get <Aula>("Aula"); if (aula != null) { ModelState.AddModelError("Error", "Existen cursadas asignadas al aula"); return(View(aula)); } return(View(_aulaService.Get(id))); }
public IActionResult Delete(long id) { return(View(_aulaService.Get(id))); }
public IActionResult Get(int id) { return(Ok( _aulaService.Get(id) )); }
public IActionResult Get(long id) { return(View("Detail", _aulaService.Get(id))); }