I want to be able to give users access to view sections of the View and I can do that with
- @if (Model.UserDataRole.RoleName == "Issuer")
- {
-
- }
and if
- @if (Model.UserDataRole.RoleName == "Admin")
- {
-
- }
My questions, is it safe to do so or I should try to do it in the cshtml.cs instead?