/// <summary> /// Reloads the selected states. /// </summary> /// <param name="session">The session.</param> public void ReloadSelectedStates(ISession session) { // var configService = ServiceLocator.Current.GetInstance<IConfigurationService>(); var selectedStates = ConfigurationService.HospitalRegion.DefaultStates.OfType <string>().ToList(); CollectionItems.OfType <HospitalCategory>().ForEach(x => { x.HospitalCountForSelectedRegion = GetHospitalCountForCategory(session, x.Id, selectedStates); }); }