feat(ResultExtensions): Add support for Forbidden status code
This commit is contained in:
@@ -45,6 +45,9 @@ internal static class ResultExtensions
|
||||
case ResultStatus.NotFound:
|
||||
return new NotFoundObjectResult(ApiResponse.NotFound(errors));
|
||||
|
||||
case ResultStatus.Forbidden:
|
||||
return new ForbidResult();
|
||||
|
||||
case ResultStatus.Unauthorized:
|
||||
return new UnauthorizedObjectResult(ApiResponse.Unauthorized(errors));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user