Gestiti allegati nel form
This commit is contained in:
12
SteUp.Shared/Core/Dto/ActivityTypeDto.cs
Normal file
12
SteUp.Shared/Core/Dto/ActivityTypeDto.cs
Normal 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;
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace SteUp.Shared.Core.Dto;
|
||||
|
||||
public class StbActivityTypeDto
|
||||
{
|
||||
[JsonPropertyName("activityTypeId")]
|
||||
public string? ActivityTypeId { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user