Example #1
0
        public ActionResult Sponsors()
        {
            var viewModel = new PublicSponsorsViewModel();

            viewModel.Sponsors = RepositoryFactory.SponsorRepository.Queryable.Where(a => a.IsActive && a.Site.Id == Site);
            viewModel.Files    = RepositoryFactory.FileRepository.Queryable.Where(a => a.Sponsors);

            return(View(viewModel));
        }
Example #2
0
        public ActionResult Sponsors()
        {
            var viewModel = new PublicSponsorsViewModel();
            viewModel.Sponsors = RepositoryFactory.SponsorRepository.Queryable.Where(a => a.IsActive && a.Site.Id == Site);
            viewModel.Files = RepositoryFactory.FileRepository.Queryable.Where(a => a.Sponsors);

            return View(viewModel);
        }