Exemple #1
0
        /// <summary>
        /// Deletes  the animals
        /// </summary>
        /// <param name="animalId">The animal id</param>
        /// <returns>Details of animals</returns>
        public AnimalResponse DeleteAnimal(string animalId)
        {
            AnimalResponse animalResponse = new AnimalResponse();
            Animal         animal         = animalRepo.DeleteAnimal(animalId);

            animalResponse.animal  = animal;
            animalResponse.message = "Animal is deleted successfully";
            return(animalResponse);
        }