DepartmentProject/DepartmentPortal/Department/DepartmentContract/BindingModels/StudentGroupBindingModels.cs
2022-12-16 17:43:23 +04:00

43 lines
1.1 KiB
C#

using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using System;
using System.ComponentModel.DataAnnotations;
using ToolsModule.ManagmentEntity;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение студенческой группы
/// </summary>
public class StudentGroupGetBindingModel : GetBindingModel
{
public Guid? EducationDirectionId { get; set; }
public Guid? AcademicPlanId { get; set; }
public Guid? LecturerId { get; set; }
}
/// <summary>
/// Сохранение студенческой группы
/// </summary>
public class StudentGroupSetBindingModel : SetBindingModel, IStudentGroupModel
{
[Required(ErrorMessage = "required")]
public Guid AcademicPlanId { get; set; }
[Required(ErrorMessage = "required")]
public int YearEntrance { get; set; }
[Required(ErrorMessage = "required")]
public int YearFinish { get; set; }
[Required(ErrorMessage = "required")]
public int GroupNumber { get; set; }
[Required(ErrorMessage = "required")]
public AcademicCourse AcademicCourse { get; set; }
public Guid? LecturerId { get; set; }
}
}