예제 #1
0
        public InternalServerErrorObjectResult Timeout(int status = StatusCodes.Status504GatewayTimeout, params string[] messages)
        {
            var result = ApiExceptionResult.GatewayTimeout(messages, status);

            return(new InternalServerErrorObjectResult(result, result.Status));
        }
예제 #2
0
        public InternalServerErrorObjectResult ServerError(params string[] messages)
        {
            var result = ApiExceptionResult.GatewayTimeout(messages);

            return(new InternalServerErrorObjectResult(result));
        }
예제 #3
0
        public InternalServerErrorObjectResult Timeout(object messages)
        {
            var result = ApiExceptionResult.GatewayTimeout(messages);

            return(new InternalServerErrorObjectResult(result, result.Status));
        }