Example #1
0
 /// <summary>
 /// Obtain user profile.
 /// </summary>
 /// <param name="UserName">User name.</param>
 /// <param name="PortalID">PortalID</param>
 /// <returns>Object of UserProfileInfo class.</returns>
 public static UserProfileAdditionalInfo GetProfile(string UserName, int PortalID)
 {
     try
     {
         return(UserProfileDataProvider.GetProfile(UserName, PortalID));
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// Obtain user profile.
 /// </summary>
 /// <param name="UserName">User name.</param>
 /// <returns>Object of UserProfileInfo class.</returns>
 public static UserProfileInfo GetPublicProfile(string UserName)
 {
     try
     {
         return(UserProfileDataProvider.GetProfile(UserName, 1));
     }
     catch (Exception)
     {
         throw;
     }
 }