public bool CheckDuplicate(RegionViewModel regionViewModel) { try { RegionManager regionManager = new RegionManager(); var region = regionManager.FindRegionName(regionViewModel.Region); if (region != null && region.Id != regionViewModel.Id && region.Region.ToUpper() == regionViewModel.Region.ToUpper()) { return(true); } return(false); } catch (Exception) { throw; } }