예제 #1
0
        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)));
        }
예제 #2
0
 public IActionResult Delete(long id)
 {
     return(View(_aulaService.Get(id)));
 }
예제 #3
0
 public IActionResult Get(int id)
 {
     return(Ok(
                _aulaService.Get(id)
                ));
 }
 public IActionResult Get(long id)
 {
     return(View("Detail", _aulaService.Get(id)));
 }