I have a dropdownlist on UI with data populated from database. I have 2 roles user and admin. Do we have option to display error based on model attribute if user have no permission to access data like the below.
[permission]
public details {get; set; }
I am trying to show validation message to user like "you dont have permission to access dropdown". Can you throw me some idea if I can use [authorize] and display error message?