示例#1
0
 public IActionResult GetAll()
 {
     try
     {
         return(new JsonResult(_service.GetAllEstudiantes())
         {
             StatusCode = 200
         });
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
        public ActionResult Index()
        {
            var estudianes = _ServiceEst.GetAllEstudiantes();

            return(View(estudianes));
        }