Example #1
0
        [HttpGet("{id}")] //rout to get the id
        public DinoModel Get(int id)
        {
            var Dino = new DinoModel();
            List <DinoModel> DinoID = Dino.DinoListGetter();

            return(DinoID[id - 1]);
        }
Example #2
0
        public List <DinoModel> Get() //this will get all of the Dinos
        {
            var Dino = new DinoModel();
            //list of dinoModel is now called Dinosaurs
            List <DinoModel> Dinosaurs = Dino.DinoListGetter();

            return(Dinosaurs);
        }