Пример #1
0
 public ActionResult Index()
 {
     var bll = new BGoodInfo();
     var type = Request.GetQ("t").GetString("all");
     if (type.IsNullOrWhiteSpace()) type = "all";
     ViewBag.GoodType = bll.GetGoodTypes();
     ViewBag.Type = type;
     //ViewBag.SourceMall = bll.GetSourceMall();
     return View();
 }
Пример #2
0
 public ActionResult List()
 {
     var bll = new BGoodInfo();
     ViewBag.GoodType = bll.GetGoodTypes();
     ViewBag.SourceMall = bll.GetSourceMall();
     return View();
 }
Пример #3
0
 public ActionResult HandlePage()
 {
     var action = Request.GetQ("action").GetString("").ToLower();
     var bll = new BGoodInfo();
     if (action.IsNullOrWhiteSpace()) return Json(new {
         Err = "Are You 弄啥呢?"
     }, JsonRequestBehavior.AllowGet);
     ViewBag.Action = action;
     ViewBag.GoodType = bll.GetGoodTypes();
     ViewBag.SourceMall = bll.GetSourceMall();
     switch (action) {
         case "add": return AddLoadPage();
         case "edit": return EditLoadPage();
     }
     return Json(new {
         Err = "Are You 弄啥呢?"
     }, JsonRequestBehavior.AllowGet);
 }