public UserProfileBLL GetProfile(UserBLL user)
 {
     if (user == null)
         return null;
     
     return EntityConvert<UserProfileDTO, UserProfileBLL>(
         workRepository.UserProfileRepository.GetProfile(user.Id));
 }
        public MembershipUser CreateUser(string name, string email, string password)
        {
            if (UserService.ToConfirmation(email))
                return null;
            
            var user = new UserBLL()
            {
                Email = email.ToLowerInvariant(),
                Password = Crypto.HashPassword(password),
                CreationDate = DateTime.Now,
                FirstName = name
            };

            UserService.CreateUserWithRole(user, 1);
            return GetUser(email, false);
        }