public HttpResponseMessage Listar() { try { var response = _servico.Listar(); return(Response(response, _servico)); } catch (Exception ex) { return(ResponseException(ex)); } }
public JsonResult Get() { try { var retorno = _servicoDisciplinaAluno.Listar(); return(Json(retorno, JsonRequestBehavior.AllowGet)); } catch (Exception e) { Console.WriteLine(e); throw; } }