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")
- {
- //some divs here
- }
- @if (Model.UserDataRole.RoleName == "Admin")
- {
- //other divs here
- }
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Dec 4, 2020, 4:47 AM
Sachin SinghPosted Dec 4, 2020, 4:51 AM
Marius VasilePosted Dec 4, 2020, 4:50 AM
Marius VasilePosted Dec 4, 2020, 4:47 AM
Marius VasilePosted Dec 4, 2020, 4:30 AM
Sachin SinghPosted Dec 4, 2020, 4:26 AM