getPSpeciesSearch() public method

public getPSpeciesSearch ( ) : IList
return IList
Exemplo n.º 1
0
        // GET: /Report/GetSpeciesList
        public ActionResult GetSpeciesList(bool ajax, string kingdom)
        {
            IGenericRepository gen = new GenericRepository();
            ITaxonRepository taxon = new TaxonRepository();

            IList<AGeneralTaxon> lists = null;

            if (kingdom.Equals("animals"))
                lists = taxon.getASpeciesSearch();
            else {
                lists = taxon.getPSpeciesSearch();
            }

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