2023-04-28 19:49:36 +04:00
|
|
|
|
using ForumDataModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ForumContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class UserViewModel : IUserModel
|
|
|
|
|
{
|
2023-04-30 13:45:16 +04:00
|
|
|
|
[DisplayName("Имя")]
|
2023-04-28 19:49:36 +04:00
|
|
|
|
public string Username { get; set; } = string.Empty;
|
|
|
|
|
|
2023-04-30 13:45:16 +04:00
|
|
|
|
[DisplayName("Почта")]
|
2023-04-28 19:49:36 +04:00
|
|
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
|
|
2023-04-30 13:45:16 +04:00
|
|
|
|
[DisplayName("Пароль")]
|
2023-04-28 19:49:36 +04:00
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата регистрации")]
|
|
|
|
|
public DateTime RegistrationDate { get; set; }
|
|
|
|
|
|
|
|
|
|
public int Id { get; set; }
|
2023-04-30 13:45:16 +04:00
|
|
|
|
|
|
|
|
|
public int RoleId { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Роль")]
|
|
|
|
|
public string RoleName { get; set; } = string.Empty;
|
2023-04-28 19:49:36 +04:00
|
|
|
|
}
|
|
|
|
|
}
|