public UserRewardPointsModel GetDetails(User user)
 {
     return(new UserRewardPointsModel
     {
         Balance = _getUserRewardPointsBalance.GetBalance(user),
         BalanceValue = _getUserRewardPointsBalance.GetBalanceValue(user)
     });
 }
        public CartModel Assign(CartModel cart, Guid userGuid)
        {
            cart.UseRewardPoints          = _cartSessionManager.GetSessionValue <bool>(UseRewardPoints, userGuid);
            cart.AvailablePoints          = _getUserRewardPointsBalance.GetBalance(cart.User);
            cart.AvailablePointsValue     = _getUserRewardPointsBalance.GetBalanceValue(cart.User);
            cart.RewardPointsExchangeRate = _getUserRewardPointsBalance.GetExchangeRate();

            return(cart);
        }