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

34 lines
800 B
C#
Raw Normal View History

using ComputerShopDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
2024-04-28 21:00:55 +04:00
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace ComputerShopContracts.ViewModels
{
2024-04-23 22:25:40 +04:00
public class RequestViewModel : IRequestModel
{
[DisplayName("Номер")]
public int Id { get; set; }
public int UserId { get; set; }
//id сборки
public int? AssemblyId { get; set; }
2024-04-28 21:00:55 +04:00
public IAssemblyModel? Assembly { get; set; }
public Dictionary<int, IOrderModel> RequestOrders { get; set; } = new();
[DisplayName("Дата оформления")]
public DateTime DateRequest { get; set; } = DateTime.Now;
[DisplayName("ФИО клиента")]
public string ClientFIO { get; set; } = string.Empty;
}
}