C# Class CapRaffle.Controllers.CategoryController

Inheritance: Controller
ファイルを表示 Open project: capgemini-stavanger/CapRaffle Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
CategoryAlreadyExists ( Category category ) : bool
Edit ( Category category ) : System.Web.Mvc.ActionResult
ModelStateAndCategoryNameIsValid ( Category category ) : bool

Method Details

CategoryController() public method

public CategoryController ( IEventRepository repo ) : System
repo IEventRepository
return System

Create() public method

public Create ( ) : System.Web.Mvc.ViewResult
return System.Web.Mvc.ViewResult

Edit() public method

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

Index() public method

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

Rules() public method

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

SaveRules() public method

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