public virtual void DeleteFreeShippingRecord(FreeShippingByOrderTotalsRecord freeShippingByOrderTotalsRecord)
        {
            if (freeShippingByOrderTotalsRecord == null)
            {
                throw new ArgumentNullException("FreeShippingByOrderTotalsRecord");
            }

            _sbwRepository.Delete(freeShippingByOrderTotalsRecord);

            _cacheManager.RemoveByPattern(FREESHIPPING_PATTERN_KEY);
        }
Exemplo n.º 2
0
        public ActionResult AddPopup(string btnId, string formId, ShippingFreeOrdersOverModel model)
        {
            var sbw = new FreeShippingByOrderTotalsRecord()
            {
                CountryId        = model.CountryId,
                StateProvinceId  = model.StateProvinceId,
                Zip              = model.Zip == "*" ? null : model.Zip,
                ShippingMethodId = model.ShippingMethodId,
                OrderOver        = model.OrderOver,
            };

            _freeShippingByOrderTotalService.InsertFreeShippingRecord(sbw);

            ViewBag.RefreshPage = true;
            ViewBag.btnId       = btnId;
            ViewBag.formId      = formId;
            return(View("CLF.Plugin.Shipping.FreeShipping.Views.FreeShipping.AddPopup", model));
        }