// GET: SellerAdmin/Shop public ActionResult FreightSetting() { ShopInfo shop = _iShopService.GetShop(CurrentSellerManager.ShopId); var shopModel = new ShopFreightModel() { FreeFreight = shop.FreeFreight, Freight = shop.Freight, }; return(View(shopModel)); }
public ActionResult FreightSetting() { ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, false); ShopFreightModel shopFreightModel = new ShopFreightModel() { FreeFreight = shop.FreeFreight, Freight = shop.Freight }; return(View(shopFreightModel)); }
// GET: SellerAdmin/Shop public JsonResult SaveFreightSetting(ShopFreightModel shopFreight) { _iShopService.UpdateShopFreight(CurrentSellerManager.ShopId, shopFreight.Freight, shopFreight.FreeFreight); Cache.Remove(CacheKeyCollection.CACHE_SHOP(CurrentSellerManager.ShopId, false)); return(Json(new { success = true })); }
public JsonResult SaveFreightSetting(ShopFreightModel shopFreight) { ShopApplication.SetShopFreight(CurrentSellerManager.ShopId, shopFreight.Freight, shopFreight.FreeFreight); return(Json(new { success = true })); }
public JsonResult SaveFreightSetting(ShopFreightModel shopFreight) { ServiceHelper.Create <IShopService>().UpdateShopFreight(base.CurrentSellerManager.ShopId, shopFreight.Freight, shopFreight.FreeFreight); return(Json(new { success = true })); }