public IHttpActionResult Update(webModel.ShoppingCart cart)
        {
            var coreCart = cart.ToCoreModel();
            _shoppingCartService.Update(new[] { coreCart });
            var retVal = _shoppingCartService.GetById(coreCart.Id);
            return Ok(retVal.ToWebModel());
        }
 public IHttpActionResult Search(webModel.SearchCriteria criteria)
 {
     var retVal = _searchService.Search(criteria.ToCoreModel());
     return Ok(retVal.ToWebModel());
 }
		public IHttpActionResult Create(webModel.ShoppingCart cart)
		{
			var coreCart = cart.ToCoreModel();
			_shoppingCartService.Create(coreCart);
			return this.StatusCode(HttpStatusCode.NoContent);
		}
 public IHttpActionResult Create(webModel.ShoppingCart cart)
 {
     var coreCart = cart.ToCoreModel();
     coreCart = _shoppingCartService.Create(coreCart);
     return Ok(coreCart.ToWebModel());
 }