public ApiResponse(int statusCode, ApiError apiError) { this.StatusCode = statusCode; this.ResponseException = apiError; this.IsError = true; }
public APIResponse(int statusCode, string message = "", object result = null, ApiError apiError = null, string apiVersion = "1.0.0.0") { this.StatusCode = statusCode; this.Message = message; this.Result = result; this.ResponseException = apiError; this.Version = apiVersion; }