// Validate Api Group is Exist or not if exist than display according Message. public bool IsAPIGroupExists(DnBAPIGroupEntity model) { SettingFacade fac = new SettingFacade(this.CurrentClient.ApplicationDBConnectionString); if (fac.GetDnBAPIGroupList("").Exists(d => d.APIGroupName.ToLower() == model.APIGroupName.Trim().ToLower() && d.APIGroupId != model.APIGroupId)) { return(true); } else { return(false); } }
public ActionResult indexDataEnrichmentSettings() { SettingFacade fac = new SettingFacade(this.CurrentClient.ApplicationDBConnectionString); List <DnBAPIGroupEntity> lstBnBAPIGroups = fac.GetDnBAPIGroupList(Helper.oUser != null ? (Helper.oUser.LOBTag != null ? Helper.oUser.LOBTag : "") : ""); // MP-1046 Create Individual URL redirection for all Tabs to make better format for URL if (Request.Headers["X-PJAX"] == "true" || Request.IsAjaxRequest()) { return(PartialView(lstBnBAPIGroups)); } else { ViewBag.SelectedTab = "Data Enrichment"; ViewBag.SelectedIndividualTab = "Data Enrichments"; return(View("~/Views/DandB/Index.cshtml", lstBnBAPIGroups)); } }