public ActionResult Section() { if (!UserValid()) { return(RedirectToAction("Index", "Home")); } SectionService SectionSvc = new SectionService(); ViewBag.Title = "Section"; ViewData = MVCUtil.PopulateCRUDViewData(typeof(section), "Section", SectionSvc, Request, ViewData); return(View("~/Views/Shared/EntityMng.cshtml")); }
public ActionResult Member() { if (!UserValid()) { return(RedirectToAction("Index", "Home")); } MemberService MemberSvc = new MemberService(); ViewBag.Title = "Member"; ViewData = MVCUtil.PopulateCRUDViewData(typeof(member), "Member", MemberSvc, Request, ViewData); return(View("~/Views/Shared/EntityMng.cshtml")); }
public ActionResult Program() { if (!UserValid()) { return(RedirectToAction("Index", "Home")); } ProgramService ProgramSvc = new ProgramService(); ViewBag.Title = "Program"; ViewData = MVCUtil.PopulateCRUDViewData(typeof(program), "Program", ProgramSvc, Request, ViewData); return(View("~/Views/Shared/EntityMng.cshtml")); }
public ActionResult Post() { if (!UserValid()) { return(RedirectToAction("Index", "Home")); } PostService PostSvc = new PostService(); ViewData = MVCUtil.EnableTimeLine("Post", "title", "date", ViewData); ViewBag.Title = "Post"; ViewData = MVCUtil.PopulateCRUDViewData(typeof(post), "Post", PostSvc, Request, ViewData); return(View("~/Views/Shared/EntityMng.cshtml")); }
public ActionResult Event() { if (!UserValid()) { return(RedirectToAction("Index", "Home")); } EventService EventSvc = new EventService(); //enable timeline ViewData = MVCUtil.EnableTimeLine("Event", "name", "date", ViewData); //ViewData["EnableTimeLine"] = true; //ViewData["Entity"] = "Event"; //ViewData["DateId"] = "date"; // ViewBag.Title = "Event"; ViewData = MVCUtil.PopulateCRUDViewData(typeof(@event), "Event", EventSvc, Request, ViewData); return(View("~/Views/Shared/EntityMng.cshtml")); }