27 lines
846 B
C#
27 lines
846 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace IOB_MAN.Core.DTO
|
|
{
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
public class ManDeclareDTO : AuthDataDTO
|
|
{
|
|
/// <summary>
|
|
/// Elenco delle CodApp Gestite
|
|
/// </summary>
|
|
public List<string> ListCodApp { get; set; } = new List<string>();
|
|
|
|
/// <summary>
|
|
/// Verifica complessiva validità richiesta:
|
|
/// CodApp presente
|
|
/// - MainKey oppure CodImp + AppKey presenti
|
|
/// </summary>
|
|
[NotMapped]
|
|
public override bool IsValid
|
|
{
|
|
get => (ListCodApp != null && ListCodApp.Count > 0) && (!string.IsNullOrEmpty(MastKey) || (!string.IsNullOrEmpty(CodImp) && !string.IsNullOrEmpty(AppKey)));
|
|
}
|
|
}
|
|
}
|