using Bootstrap.DataAccess;
using Bootstrap.Security;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.IO;
namespace Bootstrap.Admin.Models
{
///
///
///
public class ProfilesModel : NavigatorBarModel
{
///
/// 获得/设置 头像文件大小
///
public long Size { get; }
///
/// 获得 系统配置的所有样式表
///
public IEnumerable Csss { get; }
///
///
///
///
public ProfilesModel(ControllerBase controller) : base(controller)
{
// TODO: 找到MapPath方法
var fileName = AppContext.BaseDirectory + Icon;
if (File.Exists(fileName))
{
Size = new FileInfo(fileName).Length;
}
Csss = DictHelper.RetrieveWebCss();
}
}
}