Beispiel #1
0
        /// <summary>
        /// Retrieves the animals per category
        /// </summary>
        /// <param name="categorId">The categoryId</param>
        /// <returns>Details of animals per category</returns>
        public AnimalResponse GetAnimalsPercategory(string categorId)
        {
            AnimalResponse animalResponse = new AnimalResponse();
            List <Animal>  animals        = animalRepo.RetrieveAnimalDetailsPerCategory(categorId);

            animalResponse.animalList = animals;
            return(animalResponse);
        }