async public Task Update(BusinessPartners entity) { string record = toJson(entity); ServiceLayerResponse response = await _serviceLayerConnector.Put($"{SL_TABLE_NAME}('{entity.RecId}')", record); if (!response.success) { string message = $"Erro ao atualizar transação de '{entity.EntityName}': {response.errorCode}-{response.errorMessage}"; throw new ApplicationException(message); } }
async public Task Update(CfopToUsageMap entity) { string record = toJson(entity); ServiceLayerResponse response = await _serviceLayerConnector.Put($"{SL_TABLE_NAME}('{entity.RecId}')", record); if (!response.success) { string message = $"Erro ao atualizar registro de '{entity.EntityName}': {response.errorCode}-{response.errorMessage}"; Console.WriteLine(message); throw new ApplicationException(message); } }
async public Task Update(Model.Connector.POSMonitorDetail entity) { string record = toJson(entity); ServiceLayerResponse response = await _serviceLayerConnector.Put($"U_VSPOSMONITORDET('{entity.RecId}')", record); if (!response.success) { string message = $"Erro ao atualizar transação de '{entity.EntityName}': {response.errorCode}-{response.errorMessage}"; Console.WriteLine(message); throw new ApplicationException(message); } }