public static ApiResult Error(ApiResultCodes resultCode, string errorMessage = "") { return(new ApiResult() { ResultCodeName = resultCode, ErrorMessage = errorMessage }); }
public ResultBase(ApiResultCodes code, string message = null, object result = null, ReturnStatus returnStatus = ReturnStatus.Success) { this.Code = code; this.Result = result; this.Message = code.Description() + " \r\n " + message; this.ReturnStatus = returnStatus; }