public double GetCashBackRateByProductType(ProductType productType)
 {
     return(_cashBackRateRepository.GetByProductType(productType));
 }
示例#2
0
        public double GetCashBackAmountByProductType(double gross, ProductType productType)
        {
            var rate = _cashBackRateRepository.GetByProductType(productType);

            return(gross * rate / 100);
        }