public CustomErrorResult(CustomResult customResult)
 {
     success = customResult.success;
     data    = customResult.data;
 }
Example #2
0
 public CustomNoContentResult(CustomResult customResult) 
     : base(new CustomErrorResult(customResult))
 {
     StatusCode = StatusCodes.Status204NoContent;
 }
Example #3
0
 public CustomForbiddenResult(CustomResult customResult)
     : base(new CustomErrorResult(customResult))
 {
     StatusCode = StatusCodes.Status403Forbidden;
 }
Example #4
0
 public CustomUnauthorizedResult(CustomResult customResult)
     : base(new CustomErrorResult(customResult))
 {
     StatusCode = StatusCodes.Status401Unauthorized;
 }