コード例 #1
0
        /// <summary>
        /// Add the animals to the GPS device
        /// </summary>
        /// <param name="animalDetails">The animal details</param>
        /// <returns>The details of animal that is added</returns>
        public AnimalResponse AddAnimal(Animal animalDetails)
        {
            AnimalResponse animalResponse = new AnimalResponse();
            Animal         animal         = animalRepo.CreateNewAnimal(animalDetails);

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