C# 클래스 Commencement.Controllers.TemplateController

상속: ApplicationController
파일 보기 프로젝트 열기: ucdavis/Commencement

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
Create ( Commencement.Core.Domain.Template template ) : System.Web.Mvc.ActionResult
SendTestEmail ( string subject, string message ) : Task
ValidateBody ( Commencement.Core.Domain.Template template ) : string

메소드 상세

Create() 공개 메소드

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

Index() 공개 메소드

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

LoadOldTemplate() 공개 메소드

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

LoadOldTemplates() 공개 메소드

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

LoadTemplate() 공개 메소드

public LoadTemplate ( int templateId, int ceremonyId ) : JsonNetResult
templateId int
ceremonyId int
리턴 JsonNetResult

TemplateController() 공개 메소드

public TemplateController ( ILetterGenerator letterGenerator, ICeremonyService ceremonyService ) : System
letterGenerator ILetterGenerator
ceremonyService ICeremonyService
리턴 System