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); }
public UserBusiness() { _provider = UserDataProvider.GetInstance(); }