Exemplo n.º 1
0
        public ActionResult EditBenefitSetting(int id)
        {
            IEnumerable <DiscountType>          discountTypes          = DiscountTypeRepository.GetAll();
            IEnumerable <DiscountConditionType> discountConditionTypes = DiscountConditionTypeRepository.GetAll();
            BenefitSetting benefitSetting = BenefitSettingsRepository.GetById(id);

            return(PartialView("EditBenefitSetting", new EditBenefitSettingModel(benefitSetting, discountTypes, discountConditionTypes)));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Load Discount Sub Type Base Data
 /// </summary>
 public DiscountSubTypeBaseDataResponse LoadDiscountSubTypeBaseData()
 {
     return(new DiscountSubTypeBaseDataResponse
     {
         DiscountTypes = discountTypeRepository.GetAll()
     });
 }
Exemplo n.º 3
0
 /// <summary>
 /// Load all Discount Types
 /// </summary>
 public IEnumerable <DiscountType> LoadAll()
 {
     return(discountTypeRepository.GetAll());
 }