using DepartmentBusinessLogic.Enums;
using ModuleTools.Attributes;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
///
/// Получение направления обучения
///
public class EducationDirectionGetBindingModel : GetBindingModel
{
///
/// Вывод направлений, закрепленных за преподавателем
///
public Guid? LecturerId { get; set; }
}
///
/// Сохранение направления обучения
///
public class EducationDirectionSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
[MapConfiguration("Cipher")]
public string Cipher { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("ShortName")]
public string ShortName { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Title")]
public string Title { get; set; }
[MapConfiguration("Profile")]
public string Profile { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("Qualification")]
public EducationDirectionQualification Qualification { get; set; }
[Required(ErrorMessage = "required")]
[MapConfiguration("LecturerId")]
public Guid LecturerId { get; set; }
[MapConfiguration("Description")]
public string Description { get; set; }
}
}