Exemplo n.º 1
0
        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, ".png", ".jpg")
            }, contactSection.Header);

            return(View(model));
        }