2023-04-04 14:40:26 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
2023-05-18 04:35:12 +04:00
|
|
|
|
using System.Diagnostics;
|
2023-04-04 14:40:26 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UniversityModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace UniversityContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class StudentViewModel : IStudentModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
2023-04-07 13:24:39 +04:00
|
|
|
|
public int UserId { get; set; }
|
2023-04-04 14:40:26 +04:00
|
|
|
|
[DisplayName("Имя студента")]
|
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Фамилия студента")]
|
|
|
|
|
public string Surname { get; set; } = string.Empty;
|
|
|
|
|
[DisplayName("Дата рождения студента")]
|
|
|
|
|
public DateTime DateOfBirth { get; set; } = DateTime.Now;
|
2023-05-18 21:57:00 +04:00
|
|
|
|
[DisplayName("Дата поступления")]
|
|
|
|
|
public DateTime DateOfAddmission { get; set; } = DateTime.Now;
|
2023-04-07 13:24:39 +04:00
|
|
|
|
[DisplayName("Статус обучения")]
|
|
|
|
|
public string EducationStatusName { get; set; } = string.Empty;
|
2023-04-04 14:40:26 +04:00
|
|
|
|
public int StudentCard { get; set; }
|
2023-05-17 16:47:38 +04:00
|
|
|
|
public int? EducationStatusId { get; set; }
|
2023-05-18 04:35:12 +04:00
|
|
|
|
|
|
|
|
|
public StudentViewModel() { }
|
|
|
|
|
|
|
|
|
|
public StudentViewModel(IStudentModel model)
|
|
|
|
|
{
|
|
|
|
|
Id = model.Id;
|
|
|
|
|
UserId = model.UserId;
|
|
|
|
|
Name = model.Name;
|
|
|
|
|
Surname = model.Surname;
|
|
|
|
|
DateOfBirth = model.DateOfBirth;
|
|
|
|
|
StudentCard = model.StudentCard;
|
|
|
|
|
EducationStatusId = model.EducationStatusId;
|
|
|
|
|
}
|
2023-04-04 14:40:26 +04:00
|
|
|
|
}
|
|
|
|
|
}
|