// 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); }