2022-03-18 22:08:29 +04:00
|
|
|
|
using CoreModels.Enums.Department;
|
|
|
|
|
using CoreModels.ModelsDepartment;
|
2022-03-18 22:38:52 +04:00
|
|
|
|
using ToolsModule.BindingModels;
|
2021-04-12 10:01:42 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2022-03-19 22:48:13 +04:00
|
|
|
|
namespace DepartmentContract.BindingModels
|
2021-04-12 10:01:42 +04:00
|
|
|
|
{
|
2022-03-18 22:08:29 +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>
|
2022-03-18 22:08:29 +04:00
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|