Exemplo n.º 1
0
 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);
     }
 }