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)); }
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); }