DepartmentProject/DepartmentPortal/Department/DepartmentContract/BindingModels/StudentGroupBindingModels.cs

35 lines
962 B
C#
Raw Normal View History

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
2021-04-12 10:01:42 +04:00
using System;
using System.ComponentModel.DataAnnotations;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
2021-04-12 10:01:42 +04:00
namespace DepartmentContract.BindingModels
2021-04-12 10:01:42 +04:00
{
/// <summary>
/// Получение студенческой группы
/// </summary>
public class StudentGroupGetBindingModel : GetBindingModel
2021-04-12 10:01:42 +04:00
{
2021-04-27 18:04:01 +04:00
public Guid? EducationDirectionId { get; set; }
2021-04-12 10:01:42 +04:00
public Guid? LecturerId { get; set; }
}
/// <summary>
/// Сохранение студенческой группы
/// </summary>
public class StudentGroupSetBindingModel : SetBindingModel, IStudentGroupModel
2021-04-12 10:01:42 +04:00
{
[Required(ErrorMessage = "required")]
2021-04-27 18:04:01 +04:00
public Guid EducationDirectionId { get; set; }
2021-04-12 10:01:42 +04:00
[Required(ErrorMessage = "required")]
public int GroupNumber { get; set; }
[Required(ErrorMessage = "required")]
2021-04-27 18:04:01 +04:00
public AcademicCourse AcademicCourse { get; set; }
2021-04-12 10:01:42 +04:00
public Guid? LecturerId { get; set; }
}
}