using ModelTools.BindingModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace SecurityBusinessLogic.BindingModels
{
///
/// Получение пользователя
///
public class UserGetBindingModel : GetBindingModel
{
public bool? IsBanned { get; set; }
public string Login { get; set; }
public string Password { get; set; }
public List LecturerIds { get; set; }
}
///
/// Сохранение пользователя
///
public class UserSetBindingModel : SetBindingModel
{
[Required(ErrorMessage = "required")]
public string Login { get; set; }
[Required(ErrorMessage = "required")]
public string Password { get; set; }
public Guid? StudentId { get; set; }
public Guid? LecturerId { get; set; }
public Guid? EmployeeId { get; set; }
public byte[] Avatar { get; set; }
public DateTime? DateLastVisit { get; set; }
public bool IsBanned { get; set; }
public DateTime? DateBanned { get; set; }
public int CountAttempt { get; set; }
}
}