getUser() public method

public getUser ( System.Web.Security.MembershipUser use ) : UserProfile
use System.Web.Security.MembershipUser
return DRMFSS.BLL.UserProfile
Esempio n. 1
0
        /// <summary>
        /// Gets the current user profile.
        /// </summary>
        /// <returns></returns>
        protected UserProfile GetCurrentUserProfile()
        {
            MembershipUser     currentUser = Membership.GetUser(User.Identity.Name, true);
            MembershipProvider mem         = new MembershipProvider();

            return(mem.getUser(currentUser));
        }
 /// <summary>
 /// Gets the current user profile.
 /// </summary>
 /// <returns></returns>
 protected UserProfile GetCurrentUserProfile()
 {
     MembershipUser currentUser = Membership.GetUser(User.Identity.Name, true);
         MembershipProvider mem = new MembershipProvider();
         return mem.getUser(currentUser);
 }