using ModuleTools.Attributes;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
///
/// Получение учебного года
///
public class AcademicPlanGetBindingModel : GetBindingModel
{
public Guid? EducationDirectionId { get; set; }
}
///
/// Сохранение учебного года
///
public class AcademicPlanSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
[MapConfiguration("EducationDirectionId")]
public Guid EducationDirectionId { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("YearEntrance")]
public int YearEntrance { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("YearFinish")]
public int YearFinish { get; set; }
}
}