public IResult Add(Basket basket) { basket.CreateDate = DateTime.Now; basket.Active = true; _basketDal.Add(basket); return(new SuccessResult(BusinessMessages.BasketAdded)); }
public IResult Add(Basket basket) { //if (_productService.CheckStock(basket.ProductId)>0) //{ //} _basketDal.Add(basket); return(new SuccessResult("Ürün sepete eklendi")); }
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")); }
public IResult Add(Basket basket) { _basketDal.Add(basket); return(new SuccessResult(Messages.BasketAdded)); }
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()); }
public void Add(Basket basket) { _basketDal.Add(basket); }
public IResult Add(Basket basket) { _basketDal.Add(basket); return(new SuccessResult()); }