From 69d19cb676d77a18809c4d25bd0180a6fcb7d124 Mon Sep 17 00:00:00 2001 From: Factorino73 Date: Mon, 1 Apr 2024 14:37:46 +0400 Subject: [PATCH] Fix --- .../BindingModels/ScheduleBindingModel.cs | 6 +++--- .../RouteGuideContracts/ViewModels/ScheduleViewModel.cs | 6 +++--- RouteGuide/RouteGuideDataModels/Models/IScheduleModel.cs | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/RouteGuide/RouteGuideContracts/BindingModels/ScheduleBindingModel.cs b/RouteGuide/RouteGuideContracts/BindingModels/ScheduleBindingModel.cs index 1a21b7c..902062a 100644 --- a/RouteGuide/RouteGuideContracts/BindingModels/ScheduleBindingModel.cs +++ b/RouteGuide/RouteGuideContracts/BindingModels/ScheduleBindingModel.cs @@ -26,17 +26,17 @@ namespace RouteGuideContracts.BindingModels /// /// Время отправления /// - public TimeOnly DepartureTime { get; set; } = new TimeOnly(); + public DateTime DepartureTime { get; set; } = DateTime.MinValue; /// /// Время прибытия /// - public TimeOnly ArrivalTime { get; set; } = new TimeOnly(); + public DateTime ArrivalTime { get; set; } = DateTime.MinValue; /// /// Периодичность движения транспорта /// - public TimeOnly Frequency { get; set; } = new TimeOnly(); + public DateTime Frequency { get; set; } = DateTime.MinValue; /// /// Идентификатор маршрута diff --git a/RouteGuide/RouteGuideContracts/ViewModels/ScheduleViewModel.cs b/RouteGuide/RouteGuideContracts/ViewModels/ScheduleViewModel.cs index 3a85331..352e020 100644 --- a/RouteGuide/RouteGuideContracts/ViewModels/ScheduleViewModel.cs +++ b/RouteGuide/RouteGuideContracts/ViewModels/ScheduleViewModel.cs @@ -29,19 +29,19 @@ namespace RouteGuideContracts.ViewModels /// Время отправления /// [DisplayName("Время отправления")] - public TimeOnly DepartureTime { get; set; } = new TimeOnly(); + public DateTime DepartureTime { get; set; } = DateTime.MinValue; /// /// Время прибытия /// [DisplayName("Время прибытия")] - public TimeOnly ArrivalTime { get; set; } = new TimeOnly(); + public DateTime ArrivalTime { get; set; } = DateTime.MinValue; /// /// Периодичность движения транспорта /// [DisplayName("Периодичность движения транспорта")] - public TimeOnly Frequency { get; set; } = new TimeOnly(); + public DateTime Frequency { get; set; } = DateTime.MinValue; /// /// Идентификатор маршрута diff --git a/RouteGuide/RouteGuideDataModels/Models/IScheduleModel.cs b/RouteGuide/RouteGuideDataModels/Models/IScheduleModel.cs index bd01e0e..a48f05a 100644 --- a/RouteGuide/RouteGuideDataModels/Models/IScheduleModel.cs +++ b/RouteGuide/RouteGuideDataModels/Models/IScheduleModel.cs @@ -19,17 +19,17 @@ namespace RouteGuideDataModels.Models /// /// Время отправления /// - TimeOnly DepartureTime { get; } + DateTime DepartureTime { get; } /// /// Время прибытия /// - TimeOnly ArrivalTime { get; } + DateTime ArrivalTime { get; } /// /// Периодичность движения транспорта /// - TimeOnly Frequency { get; } + DateTime Frequency { get; } /// /// Идентификатор маршрута