Пример #1
0
        public IActionResult Index()
        {
            TextLog logFile = new TextLog();

            logFile.WriteLog("You are in the Index action.");
            logFile.CloseLog();

            return(View());
        }
Пример #2
0
        public IActionResult Contact()
        {
            ViewData["Message"] = "Your contact page.";

            TextLog logFile = new TextLog();

            logFile.WriteLog("You are in the Contact action.");
            logFile.CloseLog();

            return(View());
        }
Пример #3
0
        public IActionResult About()
        {
            ViewData["Message"] = "Your application description page.";

            TextLog logFile = new TextLog();

            logFile.WriteLog("You are in the About action.");
            logFile.CloseLog();

            return(View());
        }