myBook.BLL/common/AdminSession.cs
(完整代码) 797Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using myBook.Model;
using System.Web;
namespace myBook.BLL
{
public class AdminSession
{
public int Id { get; set; }
public string name { get; set; }
public AdminSession()
{
adminModel user = (adminModel)HttpContext.Current.Session["user"];
if (user != null)
{
this.Id = user.id;
this.name = user.name;
}
}
public static class adminInfo
{
public static AdminSession session()
{
AdminSession admin = new AdminSession();
return admin;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
