Esempio n. 1
0
        // GET: Home
        public ActionResult Index()
        {
            List <Student> model = new List <Student>();

            model = studentSqlDAl.GetAllStudents();

            return(View("Index", model));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            List <Student> students = studentDAL.GetAllStudents();

            return(View("Index", students));
        }