public ActionResult Save(List <string> olist) { MasterSettingBLL msb = new MasterSettingBLL(); var result = msb.Update(olist, UserId, UserName, "UserWithdrawal"); return(Json(result.toJson())); }
public ActionResult Save(MasterSettingListModel model) { Dictionary <string, List <string> > dic = new Dictionary <string, List <string> >(); dic.Add("Merchant", new List <string>() { $"Merchant_Markup,{model.Merchant_Markup}", $"Merchant_TransactionFee,{model.Merchant_TransactionFee}" }); dic.Add("BillerMaxAmount", new List <string>() { $"Biller_Day_MaxAmount,{model.Biller_Day_MaxAmount}", $"Biller_Month_MaxAmount,{model.Biller_Month_MaxAmount}", $"Biller_MaxAmount,{model.Biller_MaxAmount}", $"DiscountRate,{model.DiscountRate}", $"BillerEnable,{model.BillerEnable}", $"Error_Tolerant_Rate,{model.Error_Tolerant_Rate}" }); dic.Add("RedPocket", new List <string>() { $"RedPocket_AmountLimit,{model.RedPocket_AmountLimit}", $"RedPocket_CountLimit,{model.RedPocket_CountLimit}" }); var result = new MasterSettingBLL().UpdateBatch(dic, UserId, UserName); return(Json(result.toJson())); }