26ff8d9b4f
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
33 lines
791 B
C#
Executable File
33 lines
791 B
C#
Executable File
using System.Collections.Generic;
|
|
|
|
namespace WebInterface.Models
|
|
{
|
|
/// <summary>
|
|
/// Model for file upload result
|
|
/// </summary>
|
|
public class FileUploadResult<T>
|
|
{
|
|
/// <summary>
|
|
/// Whether or not upload was successful
|
|
/// </summary>
|
|
public bool WasSuccessful { get; set; }
|
|
|
|
/// <summary>
|
|
/// Error message generated
|
|
/// </summary>
|
|
public string ErrorMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// Data extracted from uploaded file
|
|
/// </summary>
|
|
public List<T> Data { get; set; }
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public FileUploadResult()
|
|
{
|
|
Data = new List<T>();
|
|
}
|
|
}
|
|
} |