From 07a8f8fad8cf986b19eb705d4535efee3bccfccb Mon Sep 17 00:00:00 2001 From: rafsanulhasan Date: Sat, 1 Sep 2018 02:02:25 +0600 Subject: [PATCH] Added a privacy controller and view for GDPR Cookie compliance --- src/Web/WebMVC/Controllers/HomeController.cs | 13 +++++++++++++ src/Web/WebMVC/Views/Home/Privacy.cshtml | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 src/Web/WebMVC/Controllers/HomeController.cs create mode 100644 src/Web/WebMVC/Views/Home/Privacy.cshtml diff --git a/src/Web/WebMVC/Controllers/HomeController.cs b/src/Web/WebMVC/Controllers/HomeController.cs new file mode 100644 index 000000000..f581da670 --- /dev/null +++ b/src/Web/WebMVC/Controllers/HomeController.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Mvc; + +namespace WebMVC.Controllers +{ + public class HomeController : Controller + { + public IActionResult Privacy() + { + return View(); + } + + } +} \ No newline at end of file diff --git a/src/Web/WebMVC/Views/Home/Privacy.cshtml b/src/Web/WebMVC/Views/Home/Privacy.cshtml new file mode 100644 index 000000000..7bd38619c --- /dev/null +++ b/src/Web/WebMVC/Views/Home/Privacy.cshtml @@ -0,0 +1,6 @@ +@{ + ViewData["Title"] = "Privacy Policy"; +} +

@ViewData["Title"]

+ +

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