public IDataResult <List <UserCreditCard> > GetByUserId(int id)
        {
            var result = _userCreditCardDal.GetAll(u => u.UserId == id);

            if (result != null)
            {
                return(new SuccessDataResult <List <UserCreditCard> >(result));
            }
            return(new ErrorDataResult <List <UserCreditCard> >());
        }
Exemplo n.º 2
0
 public IDataResult <List <UserCreditCard> > GetCardIdsByUserId(int id)
 {
     return(new SuccessDataResult <List <UserCreditCard> >(_userCreditCardDal.GetAll(c => c.UserId == id)));
 }
 public IDataResult <List <UserCreditCard> > GetAll(int userId)
 {
     return(new SuccessDataResult <List <UserCreditCard> >(_userCreditCardDal.GetAll(x => x.UserId == userId), Messages.CustomerCreditCardsListed));
 }