public IHttpActionResult Update([FromBody] CarrinhoTO carrinhoTO) { BaseResponse baseResponse = new BaseResponse(); try { Carrinho.Atualizar(carrinhoTO.Id, carrinhoTO.Quantidade); } catch (NegocioException nex) { baseResponse.Status = (int)nex.Codigo; baseResponse.Detalhes = nex.Message; } catch (Exception ex) { baseResponse.Status = -1; baseResponse.Detalhes = ex.Message; } return(Ok(baseResponse)); }