diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderViewModel.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderViewModel.cs index 02394a4..5cd6e36 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderViewModel.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ViewModels/OrderViewModel.cs @@ -9,7 +9,7 @@ namespace ComputerHardwareStoreContracts.ViewModels [DisplayName("Стоимость")] public double Cost { get; set; } [DisplayName("Дата создания")] - public DateTime DateCreate { get; set; } + public DateTime DateCreate { get; set; } = DateTime.Now; public Dictionary OrderProduct { get; set; } = new(); } }