PIbd-22-Ismailov_SUBD/BlogDataModels/BlogContracts/ViewModels/UserViewModel.cs

33 lines
841 B
C#
Raw Normal View History

2023-09-06 22:02:39 +04:00
using BlogDataModels;
2023-09-06 20:46:57 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2023-09-06 22:02:39 +04:00
namespace BlogContracts.ViewModels
2023-09-06 20:46:57 +04:00
{
public class UserViewModel : IUserModel
{
[DisplayName("Имя")]
public string Username { get; set; } = string.Empty;
[DisplayName("Почта")]
public string Email { get; set; } = string.Empty;
[DisplayName("Пароль")]
public string Password { get; set; } = string.Empty;
[DisplayName("Дата регистрации")]
public DateTime RegistrationDate { get; set; }
public int Id { get; set; }
public int RoleId { get; set; }
[DisplayName("Роль")]
public string RoleName { get; set; } = string.Empty;
}
}