NavigationLinkAttribute.GetPermissionFromController method
namespace: Serenity.Navigation assembly: Serenity.Net.Web
Tries to extract permission from a controller action
public static string GetPermissionFromController(Type controller, string action)
| parameter | description |
|---|---|
| controller | Controller |
| action | Action |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | Controller or action is null |
| ArgumentOutOfRangeException | Action name is invalid |
See Also
- class NavigationLinkAttribute