Gestiti allegati nel form

This commit is contained in:
2026-02-20 15:29:32 +01:00
parent eef5055bfa
commit b39b7ba751
26 changed files with 512 additions and 263 deletions

View File

@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace SteUp.Shared.Core.Dto;
public class ActivityTypeDto
{
[JsonPropertyName("activityTypeId")]
public string ActivityTypeId { get; set; } = string.Empty;
[JsonPropertyName("codJfas")]
public string CodJfas { get; set; } = string.Empty;
}

View File

@@ -10,6 +10,9 @@ public class AttachedDto
public string? Path { get; set; }
public byte[]? FileBytes { get; set; }
public string? TempPath { get; set; }
public string? ThumbPath { get; set; }
public Stream? FileContent =>
FileBytes is null ? null : new MemoryStream(FileBytes);

View File

@@ -1,9 +0,0 @@
using System.Text.Json.Serialization;
namespace SteUp.Shared.Core.Dto;
public class StbActivityTypeDto
{
[JsonPropertyName("activityTypeId")]
public string? ActivityTypeId { get; set; }
}