async public Task Delete(CfopToUsageMap entity) { ServiceLayerResponse response = await _serviceLayerConnector.Delete($"{SL_TABLE_NAME}('{entity.RecId}')", ""); if (!response.success) { string message = $"Erro ao excluir registro de '{entity.EntityName}': {response.errorCode}-{response.errorMessage}"; Console.WriteLine(message); throw new ApplicationException(message); } }
async public Task Delete(Model.Connector.POSMonitorDetail entity) { ServiceLayerResponse response = await _serviceLayerConnector.Delete($"U_VSPOSMONITORDET('{entity.RecId}')", ""); if (!response.success) { string message = $"Erro ao excluir transação de '{entity.EntityName}': {response.errorCode}-{response.errorMessage}"; Console.WriteLine(message); throw new ApplicationException(message); } }
async public Task Delete(AccountIncomingInvoice entity) { string json = toJson(entity); ServiceLayerResponse response = await _serviceLayerConnector.Delete($"{SL_SERVICE_NAME}('{entity.RecId}')", json); if (!response.success) { string message = $"{entity.EntityName}: Erro ao excluir {entity.NotaFiscal}-{entity.Parcela}, {response.errorCode} {response.errorMessage}"; throw new OperationCanceledException(message); } }