using CoreModels.Enums.Department;
using CoreModels.ModelsDepartment;
using ModuleTools.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentBusinessLogic.BindingModels
{
///
/// Получение аудитории
///
public class ClassroomGetBindingModel : GetBindingModel
{
///
/// Используется для вывода в расписании
///
public bool? UseInSchedule { get; set; }
///
/// Вывод аудиторий, закрепленных за сотрудником
///
public Guid? EmployeeId { get; set; }
}
///
/// Сохранение аудитории
///
public class ClassroomSetBindingModel : SetBindingModel, IClassroomModel
{
[Required(ErrorMessage = "required")]
public string Number { get; set; }
public string Title { get; set; }
[Required(ErrorMessage = "required")]
public Guid EmployeeId { get; set; }
[Required(ErrorMessage = "required")]
public ClassroomType ClassroomType { get; set; }
[Required(ErrorMessage = "required")]
public decimal Square { get; set; }
[Required(ErrorMessage = "required")]
public int Capacity { get; set; }
public string SecurityCode { get; set; }
public bool HaveProjector { get; set; }
public string Description { get; set; }
public byte[] Photo { get; set; }
}
}