I\'m new in ASP.NET CORE and I\'m building a small CRUD web API and I find this code and I modified it and I\'m not happy with it because I should do too much hard code
I