public GoldPriceCalculation GetTotalGoldPrice(GoldPriceCalculation goldprice, string userrole) { if (userrole == "Priveleged") { goldprice.Discount = 2; } goldprice.GetTotalValue(goldprice.Discount); return(goldprice); }
public GoldPriceCalculation GetTotalGoldPrice(GoldPriceCalculation goldprice, string userrole) { // var userinfo = _JewelryBr.GetUserInfo(id); //GoldPriceCalculation goldPriceCalculation = new GoldPriceCalculation(goldprice); if (userrole == "Priveleged") { goldprice.Discount = 2; } goldprice.GetTotalValue(goldprice.Discount); return(goldprice); }