2024-04-19 19:30:16 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UniversityDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace UniversityContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class DisciplineViewModel : IDisciplineModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2024-04-29 15:37:19 +04:00
|
|
|
|
public int UserId { get; set; }
|
2024-04-19 19:30:16 +04:00
|
|
|
|
public int TeacherId { get; set; }
|
|
|
|
|
[DisplayName("Название дисциплины")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Описание дисциплины")]
|
|
|
|
|
public string Description { get; set; } = string.Empty;
|
2024-05-02 19:15:37 +04:00
|
|
|
|
[DisplayName("Дата cоздания")]
|
|
|
|
|
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
|
2024-04-23 23:03:32 +04:00
|
|
|
|
public Dictionary<int, IStudentModel> StudentDisciplines
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
2024-04-19 19:30:16 +04:00
|
|
|
|
}
|
|
|
|
|
}
|