How to implement dynamic resource permission in asp.net MVC?

I want to implement dynamic authorization in my ASP.NET MVC project where resource permissions can be assigned to both user and role dynamically by the system admin. I’m using the following tables to manage permissions. Resource ResourcePermission Models for these tables are public class Resource { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; }…

Details