CourseWork_SchoolStudyAgain/SchoolAgainStudy/SchoolAgainStudyContracts/ViewModel/TaskViewModel.cs

29 lines
886 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 TaskViewModel : ITask
{
[DisplayName("Название")]
public string Title { get; set; } = string.Empty;
[DisplayName("Дата выдачи")]
public DateTime DateIssue { get; set; }
[DisplayName("Дата сдачи")]
public DateTime DateDelivery { get; set; }
[DisplayName("Учитель")]
public string TeacherName { get; set; } = string.Empty;
public int TeacherId { get; set; }
public Dictionary<int, IMaterial> TaskMaterials { get; set; } = new();
[DisplayName("Номер")]
public int Id { get; set; }
}
}