Beispiel #1
0
 public HttpResponseMessage Atualizar(DisciplinaAlunoRequest request)
 {
     try
     {
         var response = _servico.Atualizar(request);
         return(Response(response, _servico));
     }
     catch (Exception ex)
     {
         return(ResponseException(ex));
     }
 }
 public JsonResult Put(DisciplinaAlunoRequest request)
 {
     try
     {
         var retorno = _servicoDisciplinaAluno.Atualizar(request);
         return(Json(retorno, JsonRequestBehavior.AllowGet));
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }