1 | initial version |
To rectify the issue of mandatory fields in an EF core-built .NET core API, follow the steps below:
If the issue persists, check if the "ApiController" attribute is present at the top of the controller and whether the "services.AddControllers();" line is included in the startup.cs file. If not, add them, rebuild the project, and test again.