AspMvcActionSelectorAttribute Class |
Namespace: Slash.Diagnostics.ReSharper.Annotations
The AspMvcActionSelectorAttribute type exposes the following members.
Name | Description | |
---|---|---|
AspMvcActionSelectorAttribute | Initializes a new instance of the AspMvcActionSelectorAttribute class |
[ActionName("Foo")] public ActionResult Login(string returnUrl) { ViewBag.ReturnUrl = Url.Action("Foo"); // OK return RedirectToAction("Bar"); // Error: Cannot resolve action }