ModulePermissionController.CreateModule("MyModule");
ModulePermissionController.AddPermissionToModule("MyModule", "CanEdit");This code adds a permission called "CanEdit" to the "MyModule" module. Package Library: Microsoft.AspNetCore.Authorization. This class is part of the Authorization namespace in the Microsoft.AspNetCore.Authorization package, which provides a set of classes for managing authorization in ASP.NET Core applications.