using LCU.Library.Internal.FileOperationsModels.Models; namespace LCU.Api.Internal.FileOperations.Services; public static class RequestResponseHelper { public static RequestResponse ExceptionUpdateRequestResponse(RequestResponse requestResponse, FileOperationType fileOperationType, string exception) { requestResponse.IsSuccessful = false; requestResponse.MessageStack.Add($"Failure to execute file action. " + $"FileOperationType: {fileOperationType}, " + $"Exception: {exception} "); return requestResponse; } }