public void LoadAllFacilities() { Data.Repository respository = new Data.Repository(); try { ObservableCollection<Facility> facilities = respository.GetAllFacilities(); } catch (Exception ex) { throw ex; } try { this.Facilities = facilities.ToViewModels(); } catch (Exception ex) { throw ex; } }