Ejemplo n.º 1
0
 private ParallaxUser GetCurrentUser()
 {
     ParallaxUser user;
     if(HttpContext.Current != null && HttpContext.Current.User != null && HttpContext.Current.User.Identity != null && HttpContext.Current.User.Identity.IsAuthenticated)
     {
         user = new ParallaxUser
         {
             UserName = HttpContext.Current.User.Identity.Name
         };
     }
     else
     {
         user = null;
     }
     return user;
 }
Ejemplo n.º 2
0
 public ParallaxSession(ParallaxUser currentUser)
 {
     this.CurrentUser = currentUser;
 }