34 lines
800 B
C#
34 lines
800 B
C#
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; }
|
|
|
|
public int UserId { get; set; }
|
|
|
|
//id сборки
|
|
public int? AssemblyId { get; set; }
|
|
|
|
|
|
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;
|
|
}
|
|
}
|