public ActionResult Index() { var contactSection = ContactSectionRepository.GetContactSection(); if (contactSection == null) { return(HttpNotFound()); } var model = GetPageViewModel(new ContactViewModel() { ContactSection = contactSection, OfficeLocations = MapRepository.GetOfficeLocations(), MedicalCenterImages = MediaLibraryRepository.GetMediaLibraryDtos(".jpg", ".png") }, contactSection.Header); return(View(model)); }
public ActionResult Index() { var contactSection = ContactSectionRepository.GetContactSection(); if (contactSection == null) { return(HttpNotFound()); } var model = GetPageViewModel(new ContactViewModel() { ContactSection = contactSection, OfficeLocations = MapRepository.GetOfficeLocations(), MedicalCenterImages = MediaLibraryService.GetMediaLibraryFiles("MedicalCenters", Dependencies.SiteContextService.SiteName, ".jpg", ".png") }, contactSection.Header); return(View(model)); }