public HttpResponseMessage PostPedido(Pedidos item) { try { repositorio.Insere(item); return(Request.CreateResponse(HttpStatusCode.Created)); } catch (Exception e) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, new { error = e.Message })); } }