Updating
This commit is contained in:
+3
-2
@@ -8,6 +8,7 @@ using LCU.Library.Internal.IncentiveApiModels.Entities;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Enums;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services.MicroApiServices;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Requests;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services.Transformations;
|
||||
using LCU.Library.Internal.ApiResponse.Services;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Results;
|
||||
@@ -43,14 +44,14 @@ public class ActionCreditCardImportService : IActionCreditCardImportService
|
||||
Log.Information($"Imported {importedBusiness.Count} credit cards - business.");
|
||||
|
||||
_actionCreditCardResult.MessageStack.Add($"Imported {importedPersonal.Count()} personal and {importedBusiness.Count()} business credit cards.");
|
||||
await QueueReturnResponse.QueueResponse(request, _actionCreditCardResult.Success, _actionCreditCardResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _actionCreditCardResult.Success, _actionCreditCardResult.MessageStack, nameof(ActionCreditCardImportService));
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
var message = $"There was an issue with handling Import Action Credit Card Sales Exception Message: {exception.Message}.";
|
||||
_actionCreditCardResult.MessageStack.Add(message);
|
||||
_actionCreditCardResult.Success = false;
|
||||
await QueueReturnResponse.QueueResponse(request, _actionCreditCardResult.Success, _actionCreditCardResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _actionCreditCardResult.Success, _actionCreditCardResult.MessageStack, nameof(ActionCreditCardImportService));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-2
@@ -8,6 +8,7 @@ using LCU.Library.Internal.IncentiveApiModels.Entities;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Enums;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services.MicroApiServices;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Requests;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services;
|
||||
using LCU.API.Internal.Operations.IncentiveApi.Services.Transformations;
|
||||
using LCU.Library.Internal.IncentiveApiModels.Results;
|
||||
using LCU.Library.Internal.ApiResponse.Services;
|
||||
@@ -40,14 +41,14 @@ public class ActionVehicleImportService : IActionVehicleImportService
|
||||
Log.Information($"Imported {importedVehicleSales.Count} Action Vehicle Sales.");
|
||||
|
||||
_actionVehicleProcessResult.MessageStack.Add($"Imported {importedVehicleSales.Count()} Action Vehicle Sales.");
|
||||
await QueueReturnResponse.QueueResponse(request, _actionVehicleProcessResult.Success, _actionVehicleProcessResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _actionVehicleProcessResult.Success, _actionVehicleProcessResult.MessageStack, nameof(ActionVehicleImportService));
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
var message = $"There was an issue with handling Import Action Vehicle Sales Exception Message: {exception.Message}.";
|
||||
_actionVehicleProcessResult.MessageStack.Add(message);
|
||||
_actionVehicleProcessResult.Success = false;
|
||||
await QueueReturnResponse.QueueResponse(request, _actionVehicleProcessResult.Success, _actionVehicleProcessResult.MessageStack);
|
||||
await SafeQueueReturnResponse.TryQueueResponse(request, _actionVehicleProcessResult.Success, _actionVehicleProcessResult.MessageStack, nameof(ActionVehicleImportService));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user