public ActionResult Contact() { SiteManagement siteMgr = new SiteManagement(0); Help_Info info = siteMgr.GetHelpInfo(); return View(info); }
public ActionResult SiteInfo(Help_Info model) { SiteManagement siteMgr = new SiteManagement(User.Identity.GetUserId<int>()); try { siteMgr.CreateHelpInfo(model); } catch(KMBitException ex) { ViewBag.Message = ex.Message; } return View(); }
public ActionResult AgentGuide() { SiteManagement siteMgr = new SiteManagement(User.Identity.GetUserId<int>()); Help_Info info = siteMgr.GetHelpInfo(); return View(info); }
public ActionResult SiteInfo() { SiteManagement siteMgr = new SiteManagement(User.Identity.GetUserId<int>()); Help_Info info = siteMgr.GetHelpInfo(); if(info==null) { info = new Help_Info() { About = "", AdminHelp = "", AgentHelp = "", Contact = "" }; } return View(info); }