public IResult Add(Basket basket)
        {
            basket.CreateDate = DateTime.Now;
            basket.Active     = true;

            _basketDal.Add(basket);
            return(new SuccessResult(BusinessMessages.BasketAdded));
        }
Exemple #2
0
        public IResult Add(Basket basket)
        {
            //if (_productService.CheckStock(basket.ProductId)>0)
            //{

            //}
            _basketDal.Add(basket);
            return(new SuccessResult("Ürün sepete eklendi"));
        }
Exemple #3
0
 public IResult Add(Basket basket)
 {
     //Business Rules - MicroServices Mimari
     if (_productService.CheckStock(basket.ProductId) > 0)
     {
         return(new ErrorResult(Messages.ProductNotFound));
     }
     _basketDal.Add(basket);
     return(new SuccessResult(Messages.AddedCart));
 }
 public IResult Add(Basket basket)
 {
     _basketDal.Add(basket);
     return(new SuccessResult("ürün sepete eklendi"));
 }
Exemple #5
0
 public IResult Add(Basket basket)
 {
     _basketDal.Add(basket);
     return(new SuccessResult(Messages.BasketAdded));
 }
Exemple #6
0
 public Basket Add(Basket entity)
 {
     return _BasketDal.Add(entity);
 }
 public IResult Add(Basket basket)
 {
     _basketDal.Add(basket);
     return(new SuccessResult("ekleme işlemi başarılı "));
 }
 public IResult Add(Basket entity)
 {
     _basketDal.Add(entity);
     return(new SuccessResult());
 }
Exemple #9
0
 public void Add(Basket basket)
 {
     _basketDal.Add(basket);
 }
 public IResult Add(Basket basket)
 {
     _basketDal.Add(basket);
     return(new SuccessResult());
 }