Ejemplo n.º 1
0
        public static ServiceResponseVoid Create(Action toExecute)
        {
            ServiceResponseVoid Response = new ServiceResponseVoid();

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