From 92af8908db346fda00886720c78daf7d6a030ccf Mon Sep 17 00:00:00 2001 From: syneffort Date: Mon, 28 Aug 2023 14:09:13 +0900 Subject: [PATCH] mvc intro --- BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs | 1 + BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml | 1 + 2 files changed, 2 insertions(+) diff --git a/BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs b/BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs index 964f4cb..6ae173b 100644 --- a/BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs +++ b/BlazorApp/AspNetCoreMVC/Controllers/HomeController.cs @@ -20,6 +20,7 @@ namespace AspNetCoreMVC.Controllers public IActionResult Privacy() { + ViewData["Message"] = "Data from privacy"; return View(); } diff --git a/BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml b/BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml index af4fb19..3d239a1 100644 --- a/BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml +++ b/BlazorApp/AspNetCoreMVC/Views/Home/Privacy.cshtml @@ -4,3 +4,4 @@

@ViewData["Title"]

Use this page to detail your site's privacy policy.

+

This is from view data: @ViewData["Message"]