public ActionResult IntroductionPreview(AboutUsIntroduction aboutUs) { ViewBannerModel viewBanner = _bannerDao.GetViewBanner(); if (viewBanner != null && viewBanner.AboutUsBanner != null && viewBanner.AboutUsBanner.Count > 0) { aboutUs.AboutUsBanner = viewBanner.AboutUsBanner.Where(s => s.Page == "Introduction").FirstOrDefault(); } return(View(aboutUs)); }
public ActionResult Introduction(AboutUsIntroduction aboutUs) { if (aboutUs != null) { aboutUs.UserId = ((UserAccount)Session["UserAccount"]).GUID; aboutUs.SystemIp = GetRemoteIp.GetIPAddress(HttpContext); Int64 Id = _aboutUsDao.Save(aboutUs); return(RedirectToAction("Introduction")); } return(View()); }
// GET: Admin/AboutUs public ActionResult Introduction() { AboutUsIntroduction aboutUsIntroduction = _aboutUsDao.GetAboutUsIntroduction(); return(View(aboutUsIntroduction)); }