public IDataResult <AccessToken> CreateAccessTokenForLogin(User user, bool rememberMe) { var roleClaims = _userDal.GetRoleClaims(user); var userClaims = _userDal.GetUserClaims(user); var accessToken = _tokenHelper.CreateTokenForLogin(user, roleClaims, userClaims, rememberMe); return(new SuccessDataResult <AccessToken>(accessToken, SecurityMessages.LoginSuccessful)); }