IControllerStandard Interface |
Namespace: SOWIWeb.Helper.Interface
The IControllerStandard type exposes the following members.
Name | Description | |
---|---|---|
ActionName |
Action respectively View name to invokes
| |
ControllerContext |
Encapsulates information about an HTTP request that matches specified RouteBase and ControllerBase instances.
| |
ControllerName |
Web controller name
| |
DictionaryUI |
User interface dictionary (this can be Null)
| |
ID |
Optional route element for e.g. data record
| |
Parameter |
Optional route element for more arguments
| |
Url |
Contains methods to build URLs for ASP.NET MVC within an application.
|
Code example for properties and methods see his members
Requirement: System Web MVC Controller
/// <summary> /// A simple SOWI Web Controller based on <see cref="SOWIWeb.Helper.Interface.IControllerStandard"/> /// </summary> public class TestIStandardController : System.Web.Mvc.Controller, SOWIWeb.Helper.Interface.IControllerStandard { /// <summary> /// Constructor without parameter /// </summary> public TestIStandardController() { } public string ActionName { get { throw new NotImplementedException(); } } public ControllerContext ControllerContext { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } public string ControllerName { get { throw new NotImplementedException(); } } public Dictionary<string, string> DictionaryUI { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } public int ID { get { throw new NotImplementedException(); } } public string Parameter { get { throw new NotImplementedException(); } } public UrlHelper Url { get { throw new NotImplementedException(); } set { throw new NotImplementedException(); } } }