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
{{ message }}
This repository was archived by the owner on Jul 10, 2024. It is now read-only.
1. Copy the properties from the `EditSession.cshtml.cs` Page Model class file to the `Index.cshtml.cs` Page Model too:
611
+
``` csharp
612
+
[TempData]
613
+
public string Message { get; set; }
614
+
615
+
public bool ShowMessage => !string.IsNullOrEmpty(Message);
616
+
```
617
+
1. Rebuild and run the app then delete a session and observe it redirect to the home page and display the success message
618
+
593
619
## Create a Tag Helper for setting authorization requirements for UI elements
594
620
We're currently using `if` blocks to determine whether to show parts of the UI based the user's auth policies. We can clean up this code by creating a custom [Tag Helper](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/intro).
0 commit comments