Files
monorepo/LCU.API.Internal.FTP/LCU.Api.Internal.FTP/Helpers/FtpRequestResponseHelper.cs
T
2026-03-24 15:28:37 -05:00

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;
}
}