public static decimal ComputeTax(decimal amount) { Business.Setting setting = new Business.Setting(); decimal tax = Helper.GetDecimal(setting.GetValue((int)Business.MainSettings.Tax)); //return amount - (amount - (tax * amount) / 100 + (tax * tax * amount) / 10000); return((tax * amount) / 100); }
public static string GetValue(int key) { Business.Setting settingController = new Business.Setting(); return(settingController.GetValue(key)); }