17 lines
747 B
C#
17 lines
747 B
C#
using LCU.Api.Internal.FTPLib.Models.Enums;
|
|
using LCU.Api.Internal.FTPLib.Models;
|
|
namespace LCU.Api.Internal.FTP.Helpers;
|
|
|
|
public class FtpRequestResponseHelper
|
|
{
|
|
public static FtpRequestResponse ExceptionUpdateRequestResponse(FtpRequestResponse requestResponse,
|
|
FtpType ftpType,
|
|
string exception)
|
|
{
|
|
requestResponse.IsSuccessful = false;
|
|
requestResponse.MessageStack.Add($"Failure to execute ftp action. " +
|
|
$"FtpType: {ftpType}, " +
|
|
$"Exception: {exception} ");
|
|
return requestResponse;
|
|
}
|
|
} |