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
{
[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; }
}
///
/// Модель для зазгрузки планов
///
public class AcademicPlanLoadPlxModel
{
public Guid AcademicPlanId { get; set; }
public string FileName { get; set; }
}
}