PIbd-22_Chernyshev_Shabunov.../ComputerShopContracts/ViewModels/RequestViewModel.cs

38 lines
986 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
public class RequestViewModel : IRequestModel
{
[DisplayName("Номер")]
public int Id { get; set; }
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
//[DisplayName("Номер пользователя")]
public int UserId { get; set; }
//id сборки
public int? AssemblyId { get; set; }
public IAssemblyModel? Assembly { get; set; }
public Dictionary<int, IOrderModel> RequestOrders { get; set; } = new();
//!!!МБ НЕ НУЖНО DateTime.Now
[DisplayName("Дата оформления")]
public DateTime DateRequest { get; set; } = DateTime.Now;
//!!!МБ НЕ НУЖЕН string.Empty
[DisplayName("ФИО клиента")]
public string ClientFIO { get; set; } = string.Empty;
}
}