diff --git a/src/Ardalis.Result.AspNetCore/ResultStatusMap.cs b/src/Ardalis.Result.AspNetCore/ResultStatusMap.cs index ff492bc..ab7c7fd 100644 --- a/src/Ardalis.Result.AspNetCore/ResultStatusMap.cs +++ b/src/Ardalis.Result.AspNetCore/ResultStatusMap.cs @@ -50,7 +50,7 @@ public ResultStatusMap AddDefaultMap() /// Allows to override default status code for specific Http Methods /// /// Result Status to map. - /// Default Status Code. + /// Default Status Code. /// A to configure Status Codes for specific Http Methods. public ResultStatusMap For(ResultStatus status, HttpStatusCode defaultStatusCode, Action configure) { diff --git a/src/Ardalis.Result/Result.Void.cs b/src/Ardalis.Result/Result.Void.cs index b9ba543..7209074 100644 --- a/src/Ardalis.Result/Result.Void.cs +++ b/src/Ardalis.Result/Result.Void.cs @@ -21,10 +21,10 @@ public static Result Success() /// Represents a successful operation without return type /// /// Sets the SuccessMessage property - /// A Result> + /// A Result public static Result SuccessWithMessage(string successMessage) { - return new Result() { SuccessMessage = successMessage }; + return new Result { SuccessMessage = successMessage }; } /// @@ -69,8 +69,8 @@ public static Result Success(T value, string successMessage) /// A single error message may be provided and will be exposed via the Errors property. /// /// - /// - public static Result Error(string errorMessage) + /// A Result + public new static Result Error(string errorMessage) { return new Result(ResultStatus.Error) { Errors = new[] { errorMessage } }; } @@ -173,7 +173,7 @@ public static Result Error(string errorMessage) /// such as an edit conflict between multiple concurrent updates. /// See also HTTP 409 Conflict: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_client_errors /// - /// A Result + /// A Result public new static Result Conflict() { return new Result(ResultStatus.Conflict); @@ -186,7 +186,7 @@ public static Result Error(string errorMessage) /// See also HTTP 409 Conflict: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_client_errors /// /// A list of string error messages. - /// A Result + /// A Result public new static Result Conflict(params string[] errorMessages) { return new Result(ResultStatus.Conflict) { Errors = errorMessages }; @@ -204,6 +204,7 @@ public static Result Error(string errorMessage) return new Result(ResultStatus.Unavailable) { Errors = errorMessages }; } + /// /// Represents a critical error that occurred during the execution of the service. /// Everything provided by the user was valid, but the service was unable to complete due to an exception. /// See also HTTP 500 Internal Server Error: https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_server_errors