public override void OnAuthorization(AuthorizationContext filterContext) { if (filterContext == null) { throw new ArgumentNullException("filterContext"); } if (!(filterContext.HttpContext.Session["Admin"] == null)) { Data.Admin mAdmin = (Data.Admin)filterContext.HttpContext.Session["Admin"];
public Admin(Data.Admin entity, IUserService user) { _Entity = entity; _User = user; }