public HttpResponseMessage Post(CartDTO cart)
        {
            HttpResponseMessage result = null;

            try
            {
                if (cart == null)
                {
                    throw new HttpResponseException(HttpStatusCode.NoContent);
                }

                var mapper = configToEntity.CreateMapper();

                var c = mapper.Map <CartDTO, Cart>(cart);

                var updatedItem = _storeRepo.AddOrUpdate(c);

                _storeRepo.SaveChanges();

                result = Request.CreateResponse(HttpStatusCode.Created, config.CreateMapper().Map <Cart, CartDTO>(updatedItem));
            }
            catch (Exception ex)
            {
                result = Request.CreateErrorResponse(HttpStatusCode.ExpectationFailed, ex);
            }
            return(result);
        }