27 lines
804 B
C#
27 lines
804 B
C#
using SchoolAgainStudyDataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SchoolAgainStudyContracts.ViewModel
|
|
{
|
|
public class ProductViewModel : IProduct
|
|
{
|
|
[DisplayName("Название")]
|
|
public string Title { get; set; } = string.Empty;
|
|
[DisplayName("Описание")]
|
|
public string Description { get; set; } = string.Empty;
|
|
[DisplayName("Дата создания")]
|
|
public DateTime DateCreate { get; set; }
|
|
|
|
public int StudentId { get; set; }
|
|
|
|
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
|
|
[DisplayName("Номер")]
|
|
public int Id { get; set; }
|
|
}
|
|
}
|