Esempio n. 1
0
 public JsonResult GetSiteInfo()
 {
     JsonResult res = new JsonResult();
     User user=(User)Session["User"];
     BaseManager manager = new BaseManager(user);
     CorpInfo info = manager.GetCorpInfo();
     if (info != null)
     {
         res.Data = info;
     }
     return res;
 }
Esempio n. 2
0
        public JsonResult SaveSiteInfo()
        {
            JsonResult res = new JsonResult();
            JsonMessage message = new JsonMessage() {  Status="ok",Message=""};
            User user = (User)Session["User"];
            BaseManager manager = new BaseManager(user);
            try
            {
                string title = Request["title"];
                string about = Request["about"];
                string contact = Request["contact"];
                string team = Request["team"];
                string shipping = Request["shipping"];
                string backsale=Request["backsale"];
                CorpInfo info = new CorpInfo();
                info.Team = team;
                info.About = about;
                info.Contact = contact;
                info.Title = title;
                info.BackSale = backsale;
                info.Shipping = shipping;
                manager.SetCorpInfo(info);
                res.Data = message;
            }
            catch (Exception ex)
            {

            }

            return res;
        }
Esempio n. 3
0
 public ActionResult Team()
 {
     BaseManager manager = new BaseManager(null);
     CorpInfo corpInfo = manager.GetCorpInfo();
     return View(corpInfo);
 }