Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Ardalis.Result.AspNetCore/MinimalApiResultExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ internal static Microsoft.AspNetCore.Http.IResult ToMinimalApiResult(this IResul

private static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -62,7 +62,7 @@ private static Microsoft.AspNetCore.Http.IResult UnprocessableEntity(IResult res

private static Microsoft.AspNetCore.Http.IResult NotFoundEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -82,7 +82,7 @@ private static Microsoft.AspNetCore.Http.IResult NotFoundEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult ConflictEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -102,7 +102,7 @@ private static Microsoft.AspNetCore.Http.IResult ConflictEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult CriticalEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand All @@ -123,7 +123,7 @@ private static Microsoft.AspNetCore.Http.IResult CriticalEntity(IResult result)

private static Microsoft.AspNetCore.Http.IResult UnavailableEntity(IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

if (result.Errors.Any())
{
Expand Down
10 changes: 5 additions & 5 deletions src/Ardalis.Result.AspNetCore/ResultStatusMap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static ValidationProblemDetails BadRequest(ControllerBase controller, IR

private static ProblemDetails UnprocessableEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -122,7 +122,7 @@ private static ProblemDetails UnprocessableEntity(ControllerBase controller, IRe

private static ProblemDetails NotFoundEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -135,7 +135,7 @@ private static ProblemDetails NotFoundEntity(ControllerBase controller, IResult

private static ProblemDetails ConflictEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -148,7 +148,7 @@ private static ProblemDetails ConflictEntity(ControllerBase controller, IResult

private static ProblemDetails CriticalEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand All @@ -161,7 +161,7 @@ private static ProblemDetails CriticalEntity(ControllerBase controller, IResult

private static ProblemDetails UnavailableEntity(ControllerBase controller, IResult result)
{
var details = new StringBuilder("Next error(s) occured:");
var details = new StringBuilder("Next error(s) occurred:");

foreach (var error in result.Errors) details.Append("* ").Append(error).AppendLine();

Expand Down