teddysmithdev / pokemon-review-api

Review and rate your favorite pokemon (in .NET Core Web API)
238 stars 122 forks source link

Minor mistake in typeof() #4

Open nat246 opened 1 year ago

nat246 commented 1 year ago

https://github.com/teddysmithdev/pokemon-review-api/blob/4a612114c82f5da259d1f00a208370a17b8f0d6d/PokemonReviewApp/Controllers/OwnerController.cs#L55

I was following your tutorial and I think this should be typeof(IEnumerable<Pokemon>) since you're returning a list of pokemons in this request method. Not sure why yours still works though, correct me if I'm wrong.

markgtaxumo commented 1 year ago

Same here, I've also noticed this.