public ActionResult EditFloor(long?id = 0)
 {
     Entities.ShopHomeModuleInfo info = null;
     if (id != null && id > 0)
     {
         info = _iShopHomeModuleService.GetShopHomeModuleInfo(CurrentSellerManager.ShopId, (int)id);
     }
     else
     {
         info = new Entities.ShopHomeModuleInfo();
     }
     return(View(info));
 }
        public JsonResult AddShopHomeModule(string name)
        {
            if (string.IsNullOrWhiteSpace(name))
            {
                throw new InvalidPropertyException("名称不能为空");
            }

            var shopHomeModule = new Entities.ShopHomeModuleInfo()
            {
                ShopId = CurrentSellerManager.ShopId,
                Name   = name.Trim()
            };

            _iShopHomeModuleService.AddShopProductModule(shopHomeModule);
            ClearCache();
            return(Json(new { success = true, name = shopHomeModule.Name, id = shopHomeModule.Id }));
        }