public ActionResult SearchByArea(string area) { OutputCacheDependencies.AddPageDependency <Project>(); var projects = TaxonomySearch.GetItems(new TaxonomyExtractBuilder().AddTaxonomyItems("area", area)); return(View("Search", Mapper.Map <List <ProjectViewModel> >(projects))); }
public ActionResult Search(int year) { OutputCacheDependencies.AddPageDependency <Project>(); var projects = ProjectRepository.GetAllProjects().Where(x => x.Year == year).ToList(); return(View("Search", Mapper.Map <List <ProjectViewModel> >(projects))); }