Подредачил viewmodels

This commit is contained in:
ujijrujijr 2024-04-23 22:25:40 +04:00
parent 9a30c35fad
commit 167a915d9f
4 changed files with 7 additions and 6 deletions

View File

@ -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.Неизвестен;

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class RequestViewModel
public class RequestViewModel : IRequestModel
{
[DisplayName("Номер")]
public int Id { get; set; }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class ShipmentViewModel
public class ShipmentViewModel : IShipmentModel
{
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
[DisplayName("Номер")]

View File

@ -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; }