public CommonDbResponse ExtendCreditLimit(AgentCreditLimitCommon acc) { string sql = "sproc_agent_Detail_v3 "; sql += " @flag='exc'"; sql += ",@agent_id=" + dao.FilterString(acc.AgentId); sql += ",@action_user="******",@agent_credit_limit=" + dao.FilterString(acc.AgentCreditLimit); return(dao.ParseCommonDbResponse(sql)); }
public void ExtendCreditLimit(AgentCreditLimitModel model) { if (ModelState.IsValid) { AgentCreditLimitCommon clc = new AgentCreditLimitCommon(); clc = model.MapObject <AgentCreditLimitCommon>(); clc.AgentId = clc.AgentId.DecryptParameter(); clc.ActionUser = ApplicationUtilities.GetSessionValue("UserName").ToString(); clc.IpAddress = ApplicationUtilities.GetIP(); CommonDbResponse dbresp = buss.ExtendCreditLimit(clc); if (dbresp.Code == 0) { this.ShowPopup(0, dbresp.Message); return; } this.ShowPopup(1, dbresp.Message); return; } this.ShowPopup(1, "Credit Limit Not Changed"); return; }
//public List<AgentManagementCommon> GetWalletUserList(string DistId, string UserId = "") //{ // return repo.GetWalletUserList(DistId, UserId); //} public CommonDbResponse ExtendCreditLimit(AgentCreditLimitCommon acc) { return(repo.ExtendCreditLimit(acc)); }