C# Class Agribusiness.Web.Controllers.InvitationController

Controller for the Invitation class
Inheritance: ApplicationController
Afficher le fichier Open project: ucdavis/Agribusiness

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Delete() public méthode

public Delete ( int id ) : ActionResult
id int
Résultat ActionResult

Edit() public méthode

public Edit ( int id ) : ActionResult
id int
Résultat ActionResult

Index() public méthode

Invitation list for a seminar
public Index ( int id ) : ActionResult
id int Seminar Id
Résultat ActionResult

InvitationController() public méthode

public InvitationController ( IRepository invitationRepository, INotificationService notificationService, IEventService eventService ) : System
invitationRepository IRepository
notificationService INotificationService
eventService IEventService
Résultat System