Method Forbidden
| Improve this Doc View SourceForbidden()
Represents a situation where the user does not have permission to perform some action.
Declaration
public static Result Forbidden()
Returns
Type | Description |
---|---|
Result |
Forbidden(String)
Represents a situation where the user does not have permission to perform some action.
Declaration
public static Result Forbidden(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | An error message. |
Returns
Type | Description |
---|---|
Result |
Forbidden(IEnumerable<String>)
Represents a situation where the user does not have permission to perform some action.
Declaration
public static Result Forbidden(IEnumerable<string> errors)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | errors | A collection of string that contains error messages. |
Returns
Type | Description |
---|---|
Result |
Forbidden(String, IEnumerable<String>)
Represents a situation where the user does not have permission to perform some action.
Declaration
public static Result Forbidden(string message, IEnumerable<string> errors)
Parameters
Type | Name | Description |
---|---|---|
String | message | A general description of the error. |
IEnumerable<String> | errors | A collection of errors. |
Returns
Type | Description |
---|---|
Result |