using System; using System.Web.Mvc; namespace MvcContrib { /// /// Interface that represents a subcontroller /// public interface ISubController : IController { /// /// Gets and action that can later be invoked to produce the behavior of the subcontroller /// ///The controller depending on the subcontroller. The subcontroller uses the ControllerContext of the parent to create a new RequestContext. ///System.Action Action GetResult(ControllerBase parentController); } /// /// SubController with typed Model property for parameter passing from a parent controller. /// /// public interface ISubController : ISubController { /// /// Gets and sets a model object that matches the generic type. /// T Model { get; set; } } }