C# Class CapRaffle.Controllers.CategoryController

Inheritance: Controller
Afficher le fichier Open project: capgemini-stavanger/CapRaffle Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CategoryAlreadyExists ( Category category ) : bool
Edit ( Category category ) : System.Web.Mvc.ActionResult
ModelStateAndCategoryNameIsValid ( Category category ) : bool

Method Details

CategoryController() public méthode

public CategoryController ( IEventRepository repo ) : System
repo IEventRepository
Résultat System

Create() public méthode

public Create ( ) : System.Web.Mvc.ViewResult
Résultat System.Web.Mvc.ViewResult

Edit() public méthode

public Edit ( int categoryId ) : System.Web.Mvc.ViewResult
categoryId int
Résultat System.Web.Mvc.ViewResult

Index() public méthode

public Index ( ) : System.Web.Mvc.ViewResult
Résultat System.Web.Mvc.ViewResult

Rules() public méthode

public Rules ( int categoryId ) : System.Web.Mvc.PartialViewResult
categoryId int
Résultat System.Web.Mvc.PartialViewResult

SaveRules() public méthode

public SaveRules ( int categoryId, List rules ) : System.Web.Mvc.JsonResult
categoryId int
rules List
Résultat System.Web.Mvc.JsonResult