| | |
| | | { |
| | | return await Task.Factory.StartNew(() => |
| | | { |
| | | var bol = _service.Publish(ID, out string Msg); |
| | | if (!bol) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, Msg); |
| | | } |
| | | return bol; |
| | | return false; |
| | | }); |
| | | } |
| | | |
| | |
| | | { |
| | | return await Task.Factory.StartNew(() => |
| | | { |
| | | var bol = _service.Deprecate(ID, out string Msg); |
| | | if (!bol) |
| | | { |
| | | throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, Msg); |
| | | } |
| | | return bol; |
| | | return false; |
| | | //var bol = _service.Deprecate(ID, out string Msg); |
| | | //if (!bol) |
| | | //{ |
| | | // throw YOops.Oh(eResultCode.Alert, InternalErrorCodes.V001, Msg); |
| | | //} |
| | | //return bol; |
| | | }); |
| | | } |
| | | |