public void DeleteProjeto(int codProjeto) { try { projetos.ExcluirProjeto(codProjeto); } catch (Exception e) { var msg = new HttpResponseMessage(HttpStatusCode.NotAcceptable) { ReasonPhrase = e.Message }; throw new HttpResponseException(msg); } }