DD.WellWorkover.Cloud/AsbCloudApp/Services/ValidationResultDto.cs
Степанов Дмитрий a9c8fa98ab Сервис РТК
2023-12-04 17:09:58 +05:00

25 lines
536 B
C#

using System.Collections.Generic;
namespace AsbCloudApp.Services;
/// <summary>
/// Результат валидации объекта
/// </summary>
public class ValidationResultDto<T>
where T : class
{
/// <summary>
/// Флаг валидности
/// </summary>
public bool IsValid { get; set; }
/// <summary>
/// Объект валидации
/// </summary>
public T Item { get; set; } = null!;
/// <summary>
/// Предупреждения
/// </summary>
public IEnumerable<string>? Warnings { get; set; }
}