using BLL.DAL;
using System.ComponentModel;
namespace BLL.Models
{
public class UserModel
{
public User Record { get; set; }
[DisplayName("User Name")]
public string UserName => Record.UserName;
public string Password => Record.Password;
[DisplayName("Status")]
public string IsActive => Record.IsActive ? "Active" : "Not Active";
public string Role => Record.Role?.RoleName;
}
}