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

51 lines
1.5 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 StudentMarkPassedDisciplineGetBindingModel : GetBindingModel
{
public Guid? StudentGroupId { get; set; }
public Guid? StudentId { get; set; }
public Guid? DisciplineId { get; set; }
public DateTime? DateStart { get; set; }
public DateTime? DateFinish { get; set; }
}
/// <summary>
/// Сохранение оценки студента за дисциплину
/// </summary>
public class StudentMarkPassedDisciplineSetBindingModel : SetBindingModel, IStudentMarkPassedDisciplineModel
{
[Required(ErrorMessage = "required")]
public Guid StudentId { get; set; }
[Required(ErrorMessage = "required")]
public Guid DisciplineId { get; set; }
[Required(ErrorMessage = "required")]
public Semester Semester { get; set; }
[Required(ErrorMessage = "required")]
public MarkDisciplinePassedType Mark { get; set; }
[Required(ErrorMessage = "required")]
public DateTime DateAffixing { get; set; }
[Required(ErrorMessage = "required")]
public bool IsIncreaseMark { get; set; }
[Required(ErrorMessage = "required")]
public bool IsDirection { get; set; }
}
}