示例#1
0
        public ActionResult users()
        {

            adminReturnData returnData = new adminReturnData();

            return View("users", returnData);
        }
示例#2
0
 public ActionResult Login(string returnUrl)
 {
     ViewBag.ReturnUrl = returnUrl;
     adminReturnData data = new adminReturnData();
     
     return View(data);
 }
示例#3
0
        public ActionResult Index()
        {
           

            adminReturnData returnData = new adminReturnData();
            
            using (ApplicationDbContext DB = new ApplicationDbContext())
            {
                var data = (from p in DB.Pages
                               select new { name = p.name,description = p.description, pageID = p.pageID }).ToList()
                               .Select(p => new Page { name = p.name, description = p.description, pageID = p.pageID });
                returnData.pages = new List<Page>(data);
                
            }
            

            return View("content", returnData);
        }
示例#4
0
        public ActionResult languageHome()
        {

            adminReturnData returnData = new adminReturnData();

            //using (ApplicationDbContext DB = new ApplicationDbContext())
            //{
            //    var data = (from p in DB.Pages
            //                select new { name = p.name, controller = p.controller, description = p.description, path = p.path, pageID = p.pageID }).ToList()
            //                    .Select(p => new Page { name = p.name, controller = p.controller, description = p.description, path = p.path, pageID = p.pageID });
            //    returnData.pages = new List<Page>(data);
            //}


            return View("language", returnData);
        }
示例#5
0
        public ActionResult shortCourses()
        {

            adminReturnData returnData = new adminReturnData();
            return View("shortCourses", returnData);
        }
示例#6
0
        public ActionResult schools()
        {

            adminReturnData returnData = new adminReturnData();
            return View("schools", returnData);
        }