2023-02-17 15:30:17 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
2021-07-21 15:22:58 +05:00
|
|
|
|
{
|
2022-06-01 17:52:26 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO компании
|
|
|
|
|
/// </summary>
|
2021-09-10 11:28:57 +05:00
|
|
|
|
public class CompanyDto : IId
|
2021-07-21 15:22:58 +05:00
|
|
|
|
{
|
2022-06-01 17:52:26 +05:00
|
|
|
|
/// <inheritdoc/>
|
2021-07-21 15:22:58 +05:00
|
|
|
|
public int Id { get; set; }
|
2022-06-01 17:52:26 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название
|
|
|
|
|
/// </summary>
|
2023-02-17 15:30:17 +05:00
|
|
|
|
[Required]
|
2023-03-07 00:04:20 +05:00
|
|
|
|
[StringLength(50, MinimumLength = 1)]
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public string Caption { get; set; } = null!;
|
2022-06-01 17:52:26 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// ИД типа компании
|
2023-03-07 00:04:20 +05:00
|
|
|
|
/// </summary>
|
2022-01-13 14:34:58 +05:00
|
|
|
|
public int IdCompanyType { get; set; }
|
2022-06-01 17:52:26 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название типа компании
|
|
|
|
|
/// </summary>
|
2023-03-07 00:04:20 +05:00
|
|
|
|
[StringLength(30, MinimumLength = 1)]
|
2023-02-17 15:30:17 +05:00
|
|
|
|
public string CompanyTypeCaption { get; set; } = null!;
|
2021-07-21 15:22:58 +05:00
|
|
|
|
}
|
|
|
|
|
}
|