getAPhylum() public method

public getAPhylum ( ) : IList
return IList
コード例 #1
0
        public void IndexTest2()
        {
            ITaxonRepository Taxon = new TaxonRepository();
            IList<AGeneralTaxon> am = Taxon.getAPhylum();

            Assert.AreEqual(am[1].TaxonName, "hello");
        }
コード例 #2
0
        public JsonResult Test(string test)
        {
            try
            {

                    // TODO: Add insert logic here

                    ViewData["AJAX"] = "It worked:" + test;
               ITaxonRepository taxon = new TaxonRepository();

                IList <AGeneralTaxon> lists = taxon.getAPhylum();

                 return this.Json(lists.ToList());

                //return RedirectToAction("Details");
            }
            catch
            {
                //return View();
               return null;

            }
        }