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

36 lines
989 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using CoreModels.ModelsDepartment;
using ToolsModule.BindingModels;
using System;
using System.ComponentModel.DataAnnotations;
namespace DepartmentContract.BindingModels
{
/// <summary>
/// Получение связи преподавателя с должностью
/// </summary>
public class LecturerPostGetBindingModel : GetBindingModel
{
public Guid? LecturerId { get; set; }
public Guid? PostId { get; set; }
}
/// <summary>
/// Сохранение связи преподавателя с должностью
/// </summary>
public class LecturerPostSetBindingModel : SetBindingModel, ILecturerPostModel
{
[Required(ErrorMessage = "required")]
public Guid LecturerId { get; set; }
[Required(ErrorMessage = "required")]
public Guid PostId { get; set; }
[Required(ErrorMessage = "required")]
public decimal Rate { get; set; }
public bool IsInternalCombination { get; set; }
public bool IsExternalCombination { get; set; }
}
}