public CartItem Edit(CartItem cartitem) { try { var cartitembs = new CartItemBusiness(); return(cartitembs.Editar(cartitem)); } catch (Exception ex) { var httpError = new HttpResponseMessage() { StatusCode = (HttpStatusCode)422, ReasonPhrase = ex.Message }; throw new HttpResponseException(httpError); } }