C# Class Commencement.Controllers.TemplateController

Inheritance: ApplicationController
Datei anzeigen Open project: ucdavis/Commencement

Public Methods

Method Description
Create ( int id, int templateId ) : System.Web.Mvc.ActionResult
Index ( int id ) : System.Web.Mvc.ActionResult
LoadOldTemplate ( int templateId ) : JsonNetResult

Load the text of a specific template

LoadOldTemplates ( int templateTypeId ) : JsonNetResult

Load a list of old templates that we can copy from

LoadTemplate ( int templateId, int ceremonyId ) : JsonNetResult
TemplateController ( ILetterGenerator letterGenerator, ICeremonyService ceremonyService ) : System

Private Methods

Method Description
Create ( Commencement.Core.Domain.Template template ) : System.Web.Mvc.ActionResult
SendTestEmail ( string subject, string message ) : Task
ValidateBody ( Commencement.Core.Domain.Template template ) : string

Method Details

Create() public method

public Create ( int id, int templateId ) : System.Web.Mvc.ActionResult
id int
templateId int
return System.Web.Mvc.ActionResult

Index() public method

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

LoadOldTemplate() public method

Load the text of a specific template
public LoadOldTemplate ( int templateId ) : JsonNetResult
templateId int
return JsonNetResult

LoadOldTemplates() public method

Load a list of old templates that we can copy from
public LoadOldTemplates ( int templateTypeId ) : JsonNetResult
templateTypeId int Template Type Id
return JsonNetResult

LoadTemplate() public method

public LoadTemplate ( int templateId, int ceremonyId ) : JsonNetResult
templateId int
ceremonyId int
return JsonNetResult

TemplateController() public method

public TemplateController ( ILetterGenerator letterGenerator, ICeremonyService ceremonyService ) : System
letterGenerator ILetterGenerator
ceremonyService ICeremonyService
return System