示例#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));
        }