예제 #1
0
        public static ServiceResponseVoid Create(Action toExecute)
        {
            ServiceResponseVoid Response = new ServiceResponseVoid();

            Response.ExecMsgs = ServiceBaseBase.TrapMsgs(() => toExecute.Invoke(), false);
            return(Response);
        }
예제 #2
0
 public static ServiceResponseVoid ResultWrapper(Action toExecute)
 {
     //Global.AutoInitializeDMContext();
     return(ServiceResponseVoid.Create(toExecute));
 }