Exemple #1
0
        public User GetUser(User user, bool checkPassword)
        {
            if (checkPassword && String.IsNullOrEmpty(user.Password))
            {
                return(null);
            }

            var result = UserDataProvider.GetInstance().GetUser(ConvertObjects.ConvertType(user));

            UserHelper.CurrentUser = ConvertObjects.ConvertType(result);
            return(UserHelper.CurrentUser);
        }
Exemple #2
0
 public UserBusiness()
 {
     _provider = UserDataProvider.GetInstance();
 }