Files
monorepo/LCU.API.Internal.OnlineLoanApp/Landmark.OLA.Models/Loan/DocumentUploadFromLoanApplication.cs
T
2026-03-11 11:18:25 -05:00

29 lines
780 B
C#

using Microsoft.AspNetCore.Http;
namespace Landmark.OLA.Models.Loan
{
public class DocumentUploadFromLoanApplication
{
public IFormFile File { get; set; }
public string Section { get; set; }
public string SectionId { get; set; }
public string Description { get; set; }
public static bool IsNullOrEmpty(DocumentUploadFromLoanApplication file)
{
if(file == null || file.File == null || String.IsNullOrEmpty(file.SectionId) || String.IsNullOrEmpty(file.Description))
{
return true;
}
if(file.File.Length == 0 || String.IsNullOrEmpty(file.File.FileName))
{
return true;
}
return false;
}
}
}