Ejemplo n.º 1
0
        public async Task FeedAnimal(string animalType)
        {
            Type type = Type.GetType($"Zoo.Animals.{animalType}");

            _animalService.FeedAnimals(type);

            await Clients.All.Refresh();
        }