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