public double GetFlatRateFee() { double flat = _feesManager.GetAllFlatRateFees(); return(flat); }
public async Task <ActionResult <FlatRateFee> > GetFlatRateFee() { double flat = _feesManager.GetAllFlatRateFees(); return(Ok(_mapper.Map <IEnumerable <FlatRateFee> >(flat))); }
public override double ApplyFee(BaseFee o, double amount) { if (o is Fee) { FeesManager feeCrypto = new FeesManager(_context); var currentFeeCrypto = Convert.ToDouble((int)Math.Round((double)(Convert.ToDouble(feeCrypto.GetAllFees()) / 100) * amount)); return(currentFeeCrypto); } else if (o is FlatRateFee) { FeesManager flatRateFee = new FeesManager(_context); var flatRate = flatRateFee.GetAllFlatRateFees(); return(flatRate); } return(0); }