public IActionResult Index(string prn, string name, string department, string currentYear)
        {
            StudentDataStoreContext context = HttpContext.RequestServices.GetService(typeof(StudentMIS.Models.StudentDataStoreContext)) as StudentDataStoreContext;

            context.AddStudent(prn, name, department, currentYear);
            return(View(context.GetAllStudents()));
        }
        public ActionResult HandleDelete(string prn)
        {
            StudentDataStoreContext context = HttpContext.RequestServices.GetService(typeof(StudentMIS.Models.StudentDataStoreContext)) as StudentDataStoreContext;

            context.DeleteStudent(prn);
            return(View("Index", context.GetAllStudents()));
        }
        public IActionResult Index()
        {
            StudentDataStoreContext context = HttpContext.RequestServices.GetService(typeof(StudentMIS.Models.StudentDataStoreContext)) as StudentDataStoreContext;

            ViewData["Message"] = "FROM CONTROLLER";
            return(View(context.GetAllStudents()));
        }