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); }
public ManageController(IPhotoMasterData data, User user, ApplicationUserManager userManager, ApplicationSignInManager signInManager) : base(data, user) { UserManager = userManager; SignInManager = signInManager; }
protected BaseContestController(IPhotoMasterData data, User user) : base(data, user) { }
public ProfileController(IPhotoMasterData data, User user) : base(data, user) { }
protected BaseController(IPhotoMasterData data, User user) : this(data) { this.UserProfile = user; }