From b13353b994ca5bca1418edcb478597f1a33b5e8e Mon Sep 17 00:00:00 2001 From: Frolov-Nikita Date: Sun, 21 Jan 2024 12:52:46 +0500 Subject: [PATCH] Add some required attributes --- AsbCloudApp/Data/GTR/WitsItemRecordDto.cs | 2 ++ AsbCloudApp/Data/GTR/WitsRecordDto.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/AsbCloudApp/Data/GTR/WitsItemRecordDto.cs b/AsbCloudApp/Data/GTR/WitsItemRecordDto.cs index 98c4dce8..0137754e 100644 --- a/AsbCloudApp/Data/GTR/WitsItemRecordDto.cs +++ b/AsbCloudApp/Data/GTR/WitsItemRecordDto.cs @@ -23,11 +23,13 @@ namespace AsbCloudApp.Data.GTR /// /// Дата создания записи /// + [Required] public DateTime Date { get; set; } /// /// Значение /// + [Required] public JsonValue Value { get; set; } = default!; } } \ No newline at end of file diff --git a/AsbCloudApp/Data/GTR/WitsRecordDto.cs b/AsbCloudApp/Data/GTR/WitsRecordDto.cs index e91fa8f0..4e5da733 100644 --- a/AsbCloudApp/Data/GTR/WitsRecordDto.cs +++ b/AsbCloudApp/Data/GTR/WitsRecordDto.cs @@ -18,6 +18,7 @@ namespace AsbCloudApp.Data.GTR /// /// Дата создания записи /// + [Required] public DateTime Date { get; set; } ///