コード例 #1
0
        // GET individual info for individual species, /Species/SingleSpecies
        public ActionResult SingleSpecies(string searchTerms)
        {
            var _as = _rs.SingleSpecies(searchTerms);

            //PartialView
            vm.Species   = _as.FirstOrDefault();
            vm.Narrative = _rs.SingleNarrative(searchTerms).FirstOrDefault();
            vm.Link      = _rs.IUCNurl(searchTerms);

            return(View(vm));
            //return View(_as[0]); //ennen partialView:tä
            //return View(_as.FirstOrDefault());
        }