DD.WellWorkover.Cloud/AsbCloudApp/Data/DepositDto.cs

41 lines
1.0 KiB
C#
Raw Normal View History

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
namespace AsbCloudApp.Data
{
#nullable enable
2022-06-01 17:52:26 +05:00
/// <summary>
/// DTO Месторождения
/// </summary>
2023-02-07 16:20:36 +05:00
public class DepositBaseDto : MapPointBaseDto
{
2023-02-07 16:20:36 +05:00
}
2022-06-01 17:52:26 +05:00
2023-02-07 16:20:36 +05:00
/// <summary>
/// DTO Месторождения с кустами
/// </summary>
public class DepositDto : MapPointBaseDto
{
2022-06-01 17:52:26 +05:00
/// <summary>
2023-02-07 16:20:36 +05:00
/// Кусты месторождения
2022-06-01 17:52:26 +05:00
/// </summary>
[Required]
public IEnumerable<ClusterDto> Clusters { get; set; } = Enumerable.Empty<ClusterDto>();
2021-12-21 11:52:53 +05:00
}
2022-06-01 17:52:26 +05:00
/// <summary>
/// DTO Месторождения с кустами
/// </summary>
2023-02-07 16:20:36 +05:00
public class DepositBranchDto : MapPointBaseDto
2021-12-21 11:52:53 +05:00
{
2022-06-01 17:52:26 +05:00
/// <summary>
/// Кусты месторождения
/// </summary>
[Required]
public IEnumerable<ClusterBranchDto> Clusters { get; set; } = Enumerable.Empty<ClusterBranchDto>();
}
}