コード例 #1
0
 public ActionResult HelloWorld()
 {
     try
     {
         return(Content(PythonMethods.GetInstancia().HelloWorld()));
     }
     catch (Exception e)
     {
         return(Content($"Ocorreu um erro: {e.ToString()}"));
     }
 }
コード例 #2
0
        public ActionResult PrintHello()
        {
            try
            {
                PythonMethods.GetInstancia().PrintHello();
            }
            catch (Exception e)
            {
                return(Content($"Ocorreu um erro: {e.ToString()}"));
            }

            return(Content("Ok"));
        }
コード例 #3
0
 //GET: /HelloWorld/Welcome/
 public ActionResult Dir(string name, int ID = 1)
 {
     return(Content(PythonMethods.GetInstancia().Dir()));
 }