Updating
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user