public void ExtendCreditLimit(SubDistributorCreditLimitModel model)
 {
     if (ModelState.IsValid)
     {
         SubDistributorCreditLimitCommon clc = new SubDistributorCreditLimitCommon();
         clc            = model.MapObject <SubDistributorCreditLimitCommon>();
         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;
 }