public IActionResult AddToWishList([FromBody] CartModel wish)
        {
            _log4net.Info("Add to WishList method initiated");
            try
            {
                _log4net.Info("Add To Wishlist Provider called");

                WishlistSuccess message = _provider.Wish(wish.CustomerId, wish.ProductId);
                return(Ok(message));
            }
            catch
            {
                _log4net.Info("Error calling Add Wishlist provider");
                return(Ok(null));
            }
        }
Пример #2
0
        public async Task <IActionResult> AddToWishList(int custid, int prodid)
        {
            _log4net.Info("Add to WishList method initiated");
            try
            {
                _log4net.Info("Add To Wishlist Provider called");

                WishlistDto final = await _provider.Wish(custid, prodid);

                return(Ok(final));
            }
            catch
            {
                _log4net.Info("Error calling Add Wishlist provider");
                return(Ok(null));
            }
        }