/// <summary> /// Method to get downloads model /// </summary> /// <returns>IDownloads_Page<ListingSearchResultItem> </returns> public IDownloads_Page GetDownloadsListingPageModel() { IMvcContext mvcContext = _mvcContext(); IDownloads_Page downloadsModel = mvcContext.GetContextItem <IDownloads_Page>(); return(downloadsModel ?? _downloadsModel); }
public ListingRepository(Func <IMvcContext> mvcContext, ISearchManager searchManager, IImage_Gallery_Page imageGallery, IImage_Album imageAlbum, IVideo_Gallery_Page videoGallery, IVideo_Album_Without_Filters videoAlbum, INews_Listing_Page newsModel, IEvents_Listing_Page eventsModel, IDownloads_Page downloadsModel, ISearchPage searchPageModel) { _mvcContext = mvcContext; _searchManager = searchManager; _imageGallery = imageGallery; _imageAlbum = imageAlbum; _videoGallery = videoGallery; _videoAlbum = videoAlbum; _newsModel = newsModel; _eventsModel = eventsModel; _downloadsModel = downloadsModel; _searchPageModel = searchPageModel; }
public ActionResult DownloadsListing() { IDownloads_Page downloadsListing = _repo.GetDownloadsListingPageModel(); return(View($"{ViewPath}Listing/Downloads/DownloadsListing.cshtml", downloadsListing)); }