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; } /// /// Идентификатор маршрута