예제 #1
0
 protected virtual ResponseDto PrepareCommonResponse(Action action)
 {
     try
     {
         action.Invoke();
         return(ResponseCreator.CreateSuccessResponseDto());
     }
     catch (Exception e)
     {
         this.Log.Error(e);
         return(ResponseCreator.CreateErrorResponseDto(EErrorCode.Unknow, e.Message));
     }
 }