Пример #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));
 }