C# Class Dnn.ContactList.Mvc.Controllers.ContactController

Inheritance: DnnController
Datei anzeigen Open project: dnnsoftware/Dnn.Platform.Samples.Mvc

Public Methods

Method Description
ContactController ( ) : System

Default Constructor constructs a new ContactController

ContactController ( IContactRepository repository ) : System

Constructor constructs a new ContactController with a passed in repository

GetDemoPartial ( ) : System.Web.Mvc.ActionResult
GetJsonResult ( ) : System.Web.Mvc.JsonResult

Private Methods

Method Description
Delete ( int contactId ) : System.Web.Mvc.ActionResult
Edit ( Dnn.ContactList.Api.Contact contact ) : System.Web.Mvc.ActionResult
Edit ( int contactId = -1 ) : System.Web.Mvc.ActionResult
Index ( string searchTerm = "", int pageIndex ) : System.Web.Mvc.ActionResult

Method Details

ContactController() public method

Default Constructor constructs a new ContactController
public ContactController ( ) : System
return System

ContactController() public method

Constructor constructs a new ContactController with a passed in repository
public ContactController ( IContactRepository repository ) : System
repository IContactRepository
return System

GetDemoPartial() public method

public GetDemoPartial ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

GetJsonResult() public method

public GetJsonResult ( ) : System.Web.Mvc.JsonResult
return System.Web.Mvc.JsonResult