示例#1
0
        /// <summary>
        /// Updates an animal details
        /// </summary>
        /// <param name="animalDetails">The animal details</param>
        /// <returns>Details of updated animal</returns>
        public AnimalResponse UpdateAnimal(Animal animalDetails)
        {
            AnimalResponse animalResponse = new AnimalResponse();
            Animal         animal         = animalRepo.UpdateAnimal(animalDetails);

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