I suggest that you learn how to debug your solution.
I also suggest that you learn how to do global exception handling and log the error with a stack trace to pinpoint the location of where the code went down.
All those try/catches in the data access layer serve no purpose, let the GEH that you implement in the WebAPI project that I'll assume is referencing the DAL let the WebAPI catch it and log it.
If you find the post has answered your issue, then please mark post as 'answered'.
None
0 Points
1 Post
Value cannot be null parameter name Entity
Mar 12, 2020 12:03 PM|jashan7492|LINK
hello everyone,
I am currently practicing web api parsing in .net core and displaying them in angular.
I am having an error whenever i try to save data into the database
Contributor
4963 Points
4213 Posts
Re: Value cannot be null parameter name Entity
Mar 12, 2020 01:20 PM|DA924|LINK
https://docs.microsoft.com/en-us/visualstudio/debugger/how-to-enable-debugging-for-aspnet-applications?view=vs-2017
https://stackify.com/csharp-catch-all-exceptions/
I suggest that you learn how to debug your solution.
I also suggest that you learn how to do global exception handling and log the error with a stack trace to pinpoint the location of where the code went down.
All those try/catches in the data access layer serve no purpose, let the GEH that you implement in the WebAPI project that I'll assume is referencing the DAL let the WebAPI catch it and log it.