You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a GetBySlugAsync method inside BlogPost repositories. In the EF Core implementation, this method throws an exception if the record is not found. However, the Mongo DB implementation does not throw. Throwing an exception shouldn't be the job of the repositories. We need to move the checking and exception throwing mechanism to the domain layer.
The text was updated successfully, but these errors were encountered:
There is a
GetBySlugAsync
method insideBlogPost
repositories. In the EF Core implementation, this method throws an exception if the record is not found. However, the Mongo DB implementation does not throw. Throwing an exception shouldn't be the job of the repositories. We need to move the checking and exception throwing mechanism to the domain layer.The text was updated successfully, but these errors were encountered: