C# Class Agribusiness.Web.Controllers.InvitationController

Controller for the Invitation class
Inheritance: ApplicationController
Mostra file Open project: ucdavis/Agribusiness

Public Methods

Method Description
Create ( int personId ) : System.Web.Mvc.ActionResult

Add a person to the invitation list

Delete ( int id ) : ActionResult
Edit ( int id ) : ActionResult
Index ( int id ) : ActionResult

Invitation list for a seminar

InvitationController ( IRepository invitationRepository, INotificationService notificationService, IEventService eventService ) : System

Private Methods

Method Description
AddAll ( int id ) : System.Web.Mvc.RedirectToRouteResult
AddToInvitationList ( Seminar seminar, Person person, string siteId, string title = null, string firmname = null ) : bool

Add a person to the invitation list with checks to make sure duplicates are not inserted

Create ( int personId, Invitation invitation ) : System.Web.Mvc.ActionResult
Delete ( int id, Invitation invitation ) : ActionResult
Edit ( int id, Invitation invitation ) : ActionResult
TransferValues ( Invitation source, Invitation destination ) : void

Transfer editable values from source to destination. Use of AutoMapper is recommended

Method Details

Create() public method

Add a person to the invitation list
public Create ( int personId ) : System.Web.Mvc.ActionResult
personId int
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( int id ) : ActionResult
id int
return ActionResult

Edit() public method

public Edit ( int id ) : ActionResult
id int
return ActionResult

Index() public method

Invitation list for a seminar
public Index ( int id ) : ActionResult
id int Seminar Id
return ActionResult

InvitationController() public method

public InvitationController ( IRepository invitationRepository, INotificationService notificationService, IEventService eventService ) : System
invitationRepository IRepository
notificationService INotificationService
eventService IEventService
return System