/// <summary> /// Retrieves the animal details per category /// </summary> /// <param name="fromDate">The from date</param> /// <param name="toDate">The end date</param> /// <returns>Details of count of animals per category over the duration</returns> public AnimalResponse GetAnimalsCountPerCategory(string fromDate, string toDate) { AnimalResponse animalResponse = new AnimalResponse(); List <AnimalCount> count = animalRepo.RetrieveAnimalsCountPerCategory(fromDate, toDate); animalResponse.totalAnimalDetails = count; return(animalResponse); }