예제 #1
0
 public static ApiResult Error(ApiResultCodes resultCode, string errorMessage = "")
 {
     return(new ApiResult()
     {
         ResultCodeName = resultCode,
         ErrorMessage = errorMessage
     });
 }
예제 #2
0
 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;
 }