C# Class iServe.Controllers.NeedController

Inheritance: iServeController, IDotNailsController
Show file Open project: fellowshiptech/ft-iserve

Public Methods

Method Description
Create ( Need need ) : System.Web.Mvc.ActionResult
CreateModelEntityUsingDefaultFactory ( Type type ) : IEntity
Dashboard ( ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
ExpressInterest ( int id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
NeedAdmin ( ) : System.Web.Mvc.ActionResult
NeedController ( ) : System
NeedController ( IModelFactory modelFactory ) : System
New ( ) : System.Web.Mvc.ActionResult
SendMessage ( int needID, int userID, string messageText ) : System.Web.Mvc.ActionResult

Sends an email

Show ( int id ) : System.Web.Mvc.ActionResult
ShowInvolvement ( int needID ) : System.Web.Mvc.ActionResult

Shows the users that have expressed interest or have committed to the specified need.

Update ( int id ) : System.Web.Mvc.ActionResult
iNeed ( ) : System.Web.Mvc.ActionResult
iServe ( ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
AcceptUser ( int needID, int userID ) : System.Web.Mvc.ActionResult
CancelNeed ( int needID ) : System.Web.Mvc.ActionResult
CommitUser ( int needID, int userID ) : System.Web.Mvc.ActionResult
CompleteNeed ( int needID ) : System.Web.Mvc.ActionResult
DeclineUser ( int needID, int userID ) : System.Web.Mvc.ActionResult
LoadSelectLists ( Need need ) : void

Creates SelectLists for Foreign-keys

RateHelper ( int rating, int userID, int needID ) : System.Web.Mvc.ActionResult
RateSubmitter ( int rating, int userID, int needID ) : System.Web.Mvc.ActionResult
RemoveUser ( int needID, int userID ) : System.Web.Mvc.ActionResult

Method Details

Create() public method

public Create ( Need need ) : System.Web.Mvc.ActionResult
need iServe.Models.Need
return System.Web.Mvc.ActionResult

CreateModelEntityUsingDefaultFactory() public method

public CreateModelEntityUsingDefaultFactory ( Type type ) : IEntity
type System.Type
return IEntity

Dashboard() public method

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

Edit() public method

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

ExpressInterest() public method

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

Index() public method

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

NeedAdmin() public method

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

NeedController() public method

public NeedController ( ) : System
return System

NeedController() public method

public NeedController ( IModelFactory modelFactory ) : System
modelFactory IModelFactory
return System

New() public method

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

SendMessage() public method

Sends an email
public SendMessage ( int needID, int userID, string messageText ) : System.Web.Mvc.ActionResult
needID int
userID int /// The id of the helper to send the message to. /// If the id is null, the message will be sent to the submitter of the need. ///
messageText string
return System.Web.Mvc.ActionResult

Show() public method

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

ShowInvolvement() public method

Shows the users that have expressed interest or have committed to the specified need.
public ShowInvolvement ( int needID ) : System.Web.Mvc.ActionResult
needID int /// The id of the need. ///
return System.Web.Mvc.ActionResult

Update() public method

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

iNeed() public method

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

iServe() public method

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