Beispiel #1
0
 public ActionResult Contact()
 {
     SiteManagement siteMgr = new SiteManagement(0);
     Help_Info info = siteMgr.GetHelpInfo();
     return View(info);
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public ActionResult AgentGuide()
 {
     SiteManagement siteMgr = new SiteManagement(User.Identity.GetUserId<int>());
     Help_Info info = siteMgr.GetHelpInfo();
     return View(info);
 }
Beispiel #4
0
 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);
 }