Beispiel #1
0
        public IDataResult <CreditCart> GetById(int id)
        {
            var data = _cartDal.Get(x => x.Id == id);

            if (data == null)
            {
                return(new ErrorDataResult <CreditCart>(data, Messages.ErrorListed));
            }
            return(new SuccessDataResult <CreditCart>(data, Messages.ProductListed));
        }
Beispiel #2
0
 public IDataResult <CreditCart> GetCreditCartById(int id)
 {
     return(new SuccessDataResult <CreditCart>(_creditCartDal.Get(c => c.CreditCartId == id)));
 }
 public CreditCarts GetCreditCart(int id)
 {
     return(_creditCartDal.Get(c => c.CartNumber == id));
 }
Beispiel #4
0
        public IDataResult <CreditCart> GetById(int id)
        {
            var result = _creditCartDal.Get(c => c.Id == id);

            return(new SuccessDataResult <CreditCart>(result));
        }