Example #1
0
        // 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));
        }
Example #2
0
        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));
        }
Example #3
0
 // 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 }));
 }
Example #4
0
 public JsonResult SaveFreightSetting(ShopFreightModel shopFreight)
 {
     ShopApplication.SetShopFreight(CurrentSellerManager.ShopId, shopFreight.Freight, shopFreight.FreeFreight);
     return(Json(new { success = true }));
 }
Example #5
0
 public JsonResult SaveFreightSetting(ShopFreightModel shopFreight)
 {
     ServiceHelper.Create <IShopService>().UpdateShopFreight(base.CurrentSellerManager.ShopId, shopFreight.Freight, shopFreight.FreeFreight);
     return(Json(new { success = true }));
 }