Beispiel #1
0
        public IHttpActionResult Get()
        {
            AnimalServices service = CreateAnimalService();
            var            animals = service.GetAnimals();

            return(Ok(animals));
        }
Beispiel #2
0
        public IHttpActionResult Get()
        {
            AnimalServices animalServices = CreateAnimalServices();
            var            animals        = animalServices.GetAnimals();

            return(Ok(animals));
        }
 // Use this for initialization
 void Start()
 {
     //ds.UpdateSession(0, (int)UnityApp.Utilities.ScreensScenes.RecognizeAnimalMoca);
     AnimalsList        = AnimalServices.GetAnimals().OrderBy(i => i.Counter).Take(4).ToList();
     animalSelected     = AnimalsList[0];
     ImageAnimal.sprite = GetSpriteToDisplay((int)animalSelected.AnimalType);
     ds = new DataService(Utilities.DatabaseName);
     stopwatch.Start();
     PopulateOptions();
 }