示例#1
0
        // GET: /SearchReview/GetGenus
        public ActionResult GetSpeciesSearch(bool ajax, string genusID, string kingdom)
        {
            IGenericRepository gen   = new GenericRepository();
            ITaxonRepository   taxon = new TaxonRepository();

            IList <AGeneralTaxon> lists = null;

            int _genusID = int.Parse(genusID);

            if (kingdom.Equals("animal"))
            {
                lists = taxon.getASpeciesbyGenusSearch(_genusID);
            }
            else
            {
                lists = taxon.getPSpeciesbyGenusSearch(_genusID);
            }


            // return Json(taxons.getCountries(3, UpdateUtils.PHYLUM, UpdateUtils.ANIMALS).ToList());
            return(Json(lists));
        }