Beispiel #1
0
        public ResponseWrapper RemoveItemFromBasket([FromBody] Basket request)
        {
            _mainRepository.Session = Session;

            ResponseWrapper res = new ResponseWrapper();

            try
            {
                res.Data    = _mainRepository.RemoveItemFromBasket(request);
                res.Message = Messages.PROCESS_SUCCESSFUL;
                res.Success = true;
            }
            catch (Exception e)
            {
                res.Message = Messages.PROCESS_FAILED;
            }

            return(res);
        }