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