public ActionResult users() { adminReturnData returnData = new adminReturnData(); return View("users", returnData); }
public ActionResult Login(string returnUrl) { ViewBag.ReturnUrl = returnUrl; adminReturnData data = new adminReturnData(); return View(data); }
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); }
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); }
public ActionResult shortCourses() { adminReturnData returnData = new adminReturnData(); return View("shortCourses", returnData); }
public ActionResult schools() { adminReturnData returnData = new adminReturnData(); return View("schools", returnData); }