C# Class Agribusiness.Web.Controllers.MailingListController

Inheritance: ApplicationController
Exibir arquivo Open project: ucdavis/Agribusiness

Public Methods

Method Description
AddToList ( int mailingListId, int personId ) : JsonNetResult

Add a person into the mailing list

Create ( int seminarId ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Details ( int id ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
GetList ( int seminarId ) : JsonNetResult

Gets a list of mailing list to show in a drop down

Index ( int seminarId ) : System.Web.Mvc.ActionResult

List of Mailing Lists

MailingListController ( IRepository mailinglistRepository, IRepository seminarRepository ) : System.Collections.Generic

Private Methods

Method Description
Create ( MailingList mailinglist, int seminarId ) : System.Web.Mvc.ActionResult
Delete ( int id, MailingList mailinglist ) : System.Web.Mvc.ActionResult
Edit ( int id, MailingList mailinglist ) : System.Web.Mvc.ActionResult

Method Details

AddToList() public method

Add a person into the mailing list
public AddToList ( int mailingListId, int personId ) : JsonNetResult
mailingListId int
personId int
return JsonNetResult

Create() public method

public Create ( int seminarId ) : System.Web.Mvc.ActionResult
seminarId int
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Details() public method

public Details ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( int id ) : System.Web.Mvc.ActionResult
id int
return System.Web.Mvc.ActionResult

GetList() public method

Gets a list of mailing list to show in a drop down
public GetList ( int seminarId ) : JsonNetResult
seminarId int
return JsonNetResult

Index() public method

List of Mailing Lists
public Index ( int seminarId ) : System.Web.Mvc.ActionResult
seminarId int Optional: Limits list to Seminar
return System.Web.Mvc.ActionResult

MailingListController() public method

public MailingListController ( IRepository mailinglistRepository, IRepository seminarRepository ) : System.Collections.Generic
mailinglistRepository IRepository
seminarRepository IRepository
return System.Collections.Generic