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; }
public ParallaxSession(ParallaxUser currentUser) { this.CurrentUser = currentUser; }