コード例 #1
0
        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)));
        }
コード例 #2
0
        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)));
        }