public ActionResult UserDashboard() { user.pages = PageViewModel.FetchPages(user.UserID); ViewBag.uid = user.UserID; ViewBag.name = user.FirstName; return(View("UserDashboard", "_user", user)); }
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)); }