public ActionResult HelloWorld() { try { return(Content(PythonMethods.GetInstancia().HelloWorld())); } catch (Exception e) { return(Content($"Ocorreu um erro: {e.ToString()}")); } }
public ActionResult PrintHello() { try { PythonMethods.GetInstancia().PrintHello(); } catch (Exception e) { return(Content($"Ocorreu um erro: {e.ToString()}")); } return(Content("Ok")); }
//GET: /HelloWorld/Welcome/ public ActionResult Dir(string name, int ID = 1) { return(Content(PythonMethods.GetInstancia().Dir())); }