예제 #1
0
        public new PartialViewResult Profile()
        {
            var db      = new DB();
            var user    = Membership.GetUser();
            var profile =
                db.UserProfiles.FirstOrDefault(x => x.UserID == (Guid)user.ProviderUserKey) ??
                new UserProfile();

            var model = new RegisterModel();

            model.LoadPossibleProperties(profile);
            model.NewPassword = user.GetPassword();
            return(PartialView(model));
        }