Exemplo n.º 1
0
        protected override IAsyncResult BeginExecute(RequestContext requestContext, AsyncCallback callback, object state)
        {
            if (requestContext.HttpContext.User.Identity.IsAuthenticated)
            {
                var username = requestContext.HttpContext.User.Identity.Name;
                var user = this.Data.Users.All().FirstOrDefault(u => u.UserName == username);
                this.UserProfile = user;
            }

            return base.BeginExecute(requestContext, callback, state);
        }
Exemplo n.º 2
0
 public NewsController(IOuchernikData data, User userProfile)
     : base(data, userProfile)
 {
 }
Exemplo n.º 3
0
 protected BaseController(IOuchernikData data, User userProfile)
     : this(data)
 {
     this.UserProfile = userProfile;
 }
Exemplo n.º 4
0
 public ResourcesController(IOuchernikData data, User userProfile)
     : base(data, userProfile)
 {
 }