Ejemplo n.º 1
0
 public AlunoEProfessor GetAlunosEProfessorPorNome(string nome)
 {
     try
     {
         return(projetos.GetAlunosEProfessoresDoProjetoPorNome(nome));
     }
     catch (Exception e)
     {
         var msg = new HttpResponseMessage(HttpStatusCode.NotAcceptable)
         {
             ReasonPhrase = e.Message
         };
         throw new HttpResponseException(msg);
     }
 }