Example #1
0
 public JsonResult SetShelves() 
 {
     try
     {
         var goodsDesc = Request["desc"];
         var sku = Request["sku"];
         var price = Request["price"];
         var mendianId = "1";
         var bShelves = iopshelves.SetUpShelves(new List<string>() { sku }, goodsDesc,price);
         var newPath = Toolkit.Path.PathConfig.GetGeneratePath("Product");
         iPublist.PublishGoods(sku,newPath);
         return Json(bShelves,JsonRequestBehavior.AllowGet);
     }
     catch(Exception ex)
     {
         return Json(FunResult.GetError(ex.Message.ToString()),JsonRequestBehavior.AllowGet);
     }
 }
Example #2
0
 public JsonResult CreateTemplate()
 {
     try
     {
         var b = iPublish.PublishGoods("sku");
         return(Json(b));
     }
     catch (Exception ex)
     {
         return(Json(FunResult.GetError(ex.Message.ToString())));
     }
 }