Initial commit: JDE Scoping Tool migration project
Set up repository with legacy .NET Framework 4.8 source (OLD/), new .NET 10 Blazor solution (NEW/), OpenSpec specifications, documentation, and project configuration.
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user