Esempio n. 1
0
        public IActionResult Index()
        {
            List <Student> lstStudent = new List <Student>();

            lstStudent = objStudent.GetAllstudents().ToList();

            return(View(lstStudent));
        }
Esempio n. 2
0
 public IActionResult DashBoard()
 {
     try
     {
         List <Student> lstStudent = new List <Student>();
         lstStudent = objStudent.GetAllstudents().ToList();
         return(Ok(lstStudent));
     }
     catch
     {
         return(NotFound());
     }
 }