Spontaneous.WebApp.Services.UserProfileFacade.CheckIfJustCreatedProfile C# (CSharp) Метод

CheckIfJustCreatedProfile() публичный статический Метод

public static CheckIfJustCreatedProfile ( System userProfile ) : bool
userProfile System
Результат bool
        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;
                }
            }
        }