Example #1
0
 public ActionResult UserDashboard()
 {
     user.pages   = PageViewModel.FetchPages(user.UserID);
     ViewBag.uid  = user.UserID;
     ViewBag.name = user.FirstName;
     return(View("UserDashboard", "_user", user));
 }
Example #2
0
 public ActionResult PageUpdate(PageViewModel p)
 {
     p.Page_ID = pid;
     p.update();
     ViewBag.uid  = user.UserID;
     ViewBag.name = user.FirstName;
     user.pages   = PageViewModel.FetchPages(user.UserID);
     return(View("UserDashboard", user));
 }