protected BadRequestObjectResult BadRequest(ApiErrorCodes code) { return(BadRequest( new ApiErrorResult { Success = false, ErrorCode = code.ToString(), ErrorMessage = code.ToString(), })); }
public TestApApiExceptions(ApiErrorCodes apiErrorCode, string errorMessage, Exception innerException = null) : base(apiErrorCode.ToString(), errorMessage, innerException) { ApiErrorCode = apiErrorCode; }