C# Class JordanRift.Grassroots.Web.Controllers.CauseTemplateController

Inheritance: GrassrootsControllerBase
Afficher le fichier Open project: JordanRift/Grassroots Class Usage Examples

Méthodes publiques

Méthode Description
CauseTemplateController ( ICauseTemplateRepository causeTemplateRepository, ICauseRepository causeRepository ) : System.Collections.Generic
Search ( int id = -1 ) : System.Web.Mvc.ActionResult

Private Methods

Méthode Description
CauseDetails ( int id = -1, string referenceNumber = "" ) : System.Web.Mvc.ActionResult
Create ( ) : System.Web.Mvc.ActionResult
Destroy ( int id = -1 ) : System.Web.Mvc.ActionResult
Details ( int id = -1 ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
Index ( ) : System.Web.Mvc.ActionResult
List ( ) : System.Web.Mvc.ActionResult
MapCauseDetails ( Cause cause ) : CauseDetailsModel
MapCauseTemplate ( CauseTemplate causeTemplate, CauseTemplateDetailsModel model ) : void
MapCauseTemplateDetails ( CauseTemplate causeTemplate, bool shouldMapCauses = false ) : CauseTemplateDetailsModel
New ( CauseTemplateDetailsModel model ) : System.Web.Mvc.ActionResult
SaveFiles ( CauseTemplate causeTemplate ) : IEnumerable

Pre-processes the uploaded files and calls a IFileSaveService provider to save the actual files. Afterwards, it sets the new file name URLs onto the appropriate fields of the causeTemplate.

Update ( CauseTemplateDetailsModel model ) : System.Web.Mvc.ActionResult

Method Details

CauseTemplateController() public méthode

public CauseTemplateController ( ICauseTemplateRepository causeTemplateRepository, ICauseRepository causeRepository ) : System.Collections.Generic
causeTemplateRepository ICauseTemplateRepository
causeRepository ICauseRepository
Résultat System.Collections.Generic

Search() public méthode

public Search ( int id = -1 ) : System.Web.Mvc.ActionResult
id int
Résultat System.Web.Mvc.ActionResult