You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-7Lines changed: 24 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,22 @@
1
1
# UK.NHS.CookieBanner
2
2
3
+
# Cookie Banner NuGet Package for .NET Core
4
+
This NuGet package provides an easy-to-use cookie banner for .NET Core web applications. The cookie banner allows you to comply with the EU Law and the GDPR by informing users about the use of cookies on your website and giving them the option to accept or decline cookies.
5
+
6
+
It is designed to work with API calls, SQL server, and custom classes.
7
+
8
+
# Installation
9
+
You can install the package via NuGet Package Manager or by running the following command in the Package Manager Console:
10
+
11
+
```bash
12
+
Install-Package UK.NHS.CookieBanner
13
+
````
14
+
15
+
## Usage
16
+
3
17
### Update _Layout.cshtml file
4
18
5
-
Add following configuration in _Layout.cshtml
19
+
In your _Layout.cshtml file (or any other view where you want to display the cookie banner), add the following code
6
20
Need to add in Header section nhsuk.css if it doesnt exist
7
21
8
22
```bash
@@ -17,19 +31,15 @@ Need to add in Header section nhsuk.css if it doesnt exist
17
31
@RenderSection("NavBreadcrumbs", false)
18
32
```
19
33
20
-
### Update _Layout.cshtml file
21
-
22
-
Add following configuration in _Layout.cshtml
23
-
Need to add in Header section nhsuk.css if it doesnt exist
There is a possibility of utilising various sources to populate the cookie policy content through different means, including calling APIs, using a SQL server, or implementing a custom approach.
0 commit comments