public static bool CheckIfJustCreatedProfile(System.Web.Profile.ProfileBase userProfile)
{
if (Membership.GetUser(userProfile.UserName) != null)
{
return false;
}
else
{
DateTime zeroDate = (new DateTime()).AddHours(3);
if (userProfile.LastActivityDate < zeroDate)
{
return true;
}
else
{
return false;
}
}
}