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)); }
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")); }
public IDataResult <List <Basket> > GetAll() { return(new SuccessDataResult <List <Basket> >(_basketDal.GetAll(), Messages.ProductsListed)); }
public List<Basket> GetAll() { return _BasketDal.GetAll(); }