getAPhylum() 공개 메소드

public getAPhylum ( ) : IList
리턴 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;

            }
        }