From 167a915d9f3ecbe1bc782d64b1ed72177ebf6d10 Mon Sep 17 00:00:00 2001 From: ujijrujijr Date: Tue, 23 Apr 2024 22:25:40 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=B4=D1=80=D0=B5=D0=B4=D0=B0?= =?UTF-8?q?=D1=87=D0=B8=D0=BB=20viewmodels?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComputerShopContracts/ViewModels/OrderViewModel.cs | 4 ++-- ComputerShopContracts/ViewModels/RequestViewModel.cs | 2 +- ComputerShopContracts/ViewModels/ShipmentViewModel.cs | 2 +- ComputerShopContracts/ViewModels/UserViewModel.cs | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ComputerShopContracts/ViewModels/OrderViewModel.cs b/ComputerShopContracts/ViewModels/OrderViewModel.cs index dca947b..587ff10 100644 --- a/ComputerShopContracts/ViewModels/OrderViewModel.cs +++ b/ComputerShopContracts/ViewModels/OrderViewModel.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace ComputerShopContracts.ViewModels { - public class OrderViewModel + public class OrderViewModel : IOrderModel { [DisplayName("Номер")] public int Id { get; set; } @@ -27,7 +27,7 @@ namespace ComputerShopContracts.ViewModels //!!!МБ НЕ НУЖНО DateTime.Now [DisplayName("Дата оформления")] - public DateTime DateMake { get; set; } = DateTime.Now; + public DateTime DateCreate { get; set; } = DateTime.Now; [DisplayName("Статус")] public OrderStatus Status { get; set; } = OrderStatus.Неизвестен; diff --git a/ComputerShopContracts/ViewModels/RequestViewModel.cs b/ComputerShopContracts/ViewModels/RequestViewModel.cs index ab73799..dec0ec2 100644 --- a/ComputerShopContracts/ViewModels/RequestViewModel.cs +++ b/ComputerShopContracts/ViewModels/RequestViewModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace ComputerShopContracts.ViewModels { - public class RequestViewModel + public class RequestViewModel : IRequestModel { [DisplayName("Номер")] public int Id { get; set; } diff --git a/ComputerShopContracts/ViewModels/ShipmentViewModel.cs b/ComputerShopContracts/ViewModels/ShipmentViewModel.cs index 289852f..7641bf9 100644 --- a/ComputerShopContracts/ViewModels/ShipmentViewModel.cs +++ b/ComputerShopContracts/ViewModels/ShipmentViewModel.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; namespace ComputerShopContracts.ViewModels { - public class ShipmentViewModel + public class ShipmentViewModel : IShipmentModel { //!!!ТУТ МБ НЕ НУЖЕН DisplayName [DisplayName("Номер")] diff --git a/ComputerShopContracts/ViewModels/UserViewModel.cs b/ComputerShopContracts/ViewModels/UserViewModel.cs index c644d94..f36ac2d 100644 --- a/ComputerShopContracts/ViewModels/UserViewModel.cs +++ b/ComputerShopContracts/ViewModels/UserViewModel.cs @@ -1,4 +1,5 @@ -using System; +using ComputerShopDataModels.Models; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; @@ -7,7 +8,7 @@ using System.Threading.Tasks; namespace ComputerShopContracts.ViewModels { - public class UserViewModel + public class UserViewModel : IUserModel { //!!!МБ ТУТ НАДО DisplayName (НО ВРЯД ЛИ) public int Id { get; set; }