Click or drag to resize

IControllerStandard Interface

SOWI standard web controller interface

Namespace:  SOWIWeb.Helper.Interface
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public interface IControllerStandard

The IControllerStandard type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleActionName
Action respectively View name to invokes
Public propertyControllerContext
Encapsulates information about an HTTP request that matches specified RouteBase and ControllerBase instances.
Public propertyCode exampleControllerName
Web controller name
Public propertyDictionaryUI
User interface dictionary (this can be Null)
Public propertyCode exampleID
Optional route element for e.g. data record
Public propertyCode exampleParameter
Optional route element for more arguments
Public propertyUrl
Contains methods to build URLs for ASP.NET MVC within an application.
Top
Remarks
Routing syntay: ControllerName/ActionName/ID/Parameter
Examples
Write interface name at the class then can all properties and methods implemented by support This code example has all properties and methods without a logic

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();
        }
    }
}
See Also