Beispiel #1
0
 // GET: animal_info/Details/5
 public ActionResult Details(int id)
 {
     using (animal_information animal = new animal_information())
     {
         return(View(animal.C_Total_of_species__.Where(x => x.ID == id).FirstOrDefault()));
     }
 }
Beispiel #2
0
 // GET: animal_info
 public ActionResult animal_info_Index()
 {
     using (animal_information animal = new animal_information())
     {
         return(View(animal.C_Total_of_species__.ToList()));
     }
 }