public double GetCashBackRateByProductType(ProductType productType) { return(_cashBackRateRepository.GetByProductType(productType)); }
public double GetCashBackAmountByProductType(double gross, ProductType productType) { var rate = _cashBackRateRepository.GetByProductType(productType); return(gross * rate / 100); }