public ActionResult InsertUpdateDataEnrichment(string Parameters) { // Get Query string in Encrypted mode and decrypt Query string and set Parameters if (Parameters == "undefined" || Parameters.ToLower() == "null") { Parameters = null; } if (Parameters != null) { Parameters = StringCipher.Decrypt(Parameters.Replace(Utility.Utility.urlseparator, "+"), General.passPhrase); } // Open Popup for DnbAbi Data. int GroupId = Convert.ToInt32(Parameters); SettingFacade fac = new SettingFacade(this.CurrentClient.ApplicationDBConnectionString); DnBAPIGroupEntity model = new DnBAPIGroupEntity(); if (GroupId > 0) { model = fac.GetAPIGroupDetailsById(GroupId); model.lstDnbAPIs = fac.GetDnBAPIList(model.APIType, model.CredentialId); if (model != null) { model.tmpName = model.APIGroupName; if (model.DnbAPIIds != null) { model.lstDnBApiGrp = new List <DnbAPIEntity>(); foreach (var item in model.DnbAPIIds.Split(',')) { var obj = model.lstDnbAPIs.FirstOrDefault(d => d.DnBAPIId == Convert.ToInt32(item)); if (obj != null) { model.lstDnBApiGrp.Add(obj); model.lstDnbAPIs.Remove(obj); } } } } else { model.lstDnbAPIs = fac.GetDnBAPIList(null); } } else { model.lstDnbAPIs = fac.GetDnBAPIList(null); } return(PartialView(model)); }