Exemple #1
0
        public IDataResult <List <Basket> > GetAll()
        {
            if (DateTime.Now.Hour == 23)
            {
                return(new ErrorDataResult <List <Basket> >(Messages.MaintenanceTime));
            }

            return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), Messages.SuccessListed));
        }
Exemple #2
0
        public List <Basket> Baskets(int userId)
        {
            //List<Product> products = new List<Product>();
            var result = _basketDal.GetAll(b => b.UserID == userId);

            return(result);
        }
 public IDataResult <List <Basket> > GetAll()
 {
     return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll()));
 }
 public IDataResult <List <Basket> > GetAll()
 {
     return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), "Sepet listelendi"));
 }
 public IDataResult <List <Basket> > GetAll()
 {
     return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), BusinessMessages.BasketsListed));
 }
 public IDataResult <List <Basket> > GetAll()
 {
     return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), "Gayet güzel sepetteki ürünler listelendi"));
 }
Exemple #7
0
 public IDataResult <List <Basket> > GetAll()
 {
     return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), Messages.ProductsListed));
 }
Exemple #8
0
 public List<Basket> GetAll()
 {
     return _BasketDal.GetAll();
 }