C# 클래스 CapRaffle.Controllers.CategoryController

상속: Controller
파일 보기 프로젝트 열기: capgemini-stavanger/CapRaffle 1 사용 예제들

공개 메소드들

메소드 설명
CategoryController ( IEventRepository repo ) : System
Create ( ) : System.Web.Mvc.ViewResult
Edit ( int categoryId ) : System.Web.Mvc.ViewResult
Index ( ) : System.Web.Mvc.ViewResult
Rules ( int categoryId ) : System.Web.Mvc.PartialViewResult
SaveRules ( int categoryId, List rules ) : System.Web.Mvc.JsonResult

비공개 메소드들

메소드 설명
CategoryAlreadyExists ( Category category ) : bool
Edit ( Category category ) : System.Web.Mvc.ActionResult
ModelStateAndCategoryNameIsValid ( Category category ) : bool

메소드 상세

CategoryController() 공개 메소드

public CategoryController ( IEventRepository repo ) : System
repo IEventRepository
리턴 System

Create() 공개 메소드

public Create ( ) : System.Web.Mvc.ViewResult
리턴 System.Web.Mvc.ViewResult

Edit() 공개 메소드

public Edit ( int categoryId ) : System.Web.Mvc.ViewResult
categoryId int
리턴 System.Web.Mvc.ViewResult

Index() 공개 메소드

public Index ( ) : System.Web.Mvc.ViewResult
리턴 System.Web.Mvc.ViewResult

Rules() 공개 메소드

public Rules ( int categoryId ) : System.Web.Mvc.PartialViewResult
categoryId int
리턴 System.Web.Mvc.PartialViewResult

SaveRules() 공개 메소드

public SaveRules ( int categoryId, List rules ) : System.Web.Mvc.JsonResult
categoryId int
rules List
리턴 System.Web.Mvc.JsonResult