Skip to content

Commit 5cc494c

Browse files
committed
Added documentation for the Web MVC project
1 parent 579b6b3 commit 5cc494c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docs/articles/features/web-mvc.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ title: Using the Web MVC package | MADE.NET
55

66
# Using the Web MVC package
77

8+
The Web MVC library is a complementary extension package to ASP.NET Core MVC applications, providing additional helpers for building applications following the MVC pattern.
9+
10+
## Returning an internal server error ObjectResult
11+
12+
Out-of-the-box, the ASP.NET Core MVC packages don't contain a way of returning an internal server error (500) `ObjectResult` if an error occurs in your application.
13+
14+
The `InternalServerErrorObjectResult` can be used to achieve this. It contains two constructors, one for providing the error, and another for providing a `ModelStateDictionary` model state containing validation errors.

0 commit comments

Comments
 (0)