CourseWork_SchoolStudyAgain/SchoolAgainStudy/SchoolAgainStudyContracts/ViewModel/ProductViewModel.cs

29 lines
910 B
C#
Raw Normal View History

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; }
[DisplayName("Школьник")]
public string StudentName { get; set; } = string.Empty;
public Dictionary<int, IInterest> ProductInterests { get; set; } = new();
[DisplayName("Номер")]
public int Id { get; set; }
}
}