예제 #1
0
        // GET: Home
        public ActionResult Index()
        {
            List <Student> model = new List <Student>();

            model = studentSqlDAl.GetAllStudents();

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

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