protected void SetResultAsSuccess(int code)
 {
     this.Result = new ServiceResult(ServiceResultType.Success, code);
 }
 protected void SetResultAsSuccess(int code, string message)
 {
     this.Result = new ServiceResult(ServiceResultType.Success, message, code);
 }
 protected internal void SetResultAsFail(int code, string message)
 {
     this.Result = new ServiceResult(ServiceResultType.Fail, message, code);
 }
 internal void SetResultAsSuccess()
 {
     this.Result = new ServiceResult(ServiceResultType.Success, 0);
 }
 protected internal void SetResultAsFail(int code, Exception exception)
 {
     this.Result = new ServiceResult(ServiceResultType.Fail, exception, code);
 }