Example #1
0
 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"];
Example #2
0
 public Admin(Data.Admin entity, IUserService user)
 {
     _Entity = entity;
     _User = user;
 }
Example #3
0
 public Admin(Data.Admin entity, IUserService user)
 {
     _Entity = entity;
     _User   = user;
 }