C# Class CapRaffle.Controllers.EventController

Inheritance: Controller
Mostra file Open project: capgemini-stavanger/CapRaffle Class Usage Examples

Public Properties

Property Type Description
PageSize int

Public Methods

Method Description
Details ( int id ) : System.Web.Mvc.ActionResult
EventController ( IEventRepository eventRepository ) : System
ExportEvent ( int id ) : System.Web.Mvc.FileContentResult
Index ( bool archive = false, int page = 1 ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
Create ( ) : System.Web.Mvc.ActionResult
Create ( EventViewModel model ) : System.Web.Mvc.ActionResult
CreateBasedOnOldEvent ( int id ) : System.Web.Mvc.ActionResult
Delete ( int id ) : System.Web.Mvc.ActionResult
Edit ( EventViewModel model ) : System.Web.Mvc.ActionResult
Edit ( int id ) : System.Web.Mvc.ActionResult
NumberofSpotsList ( int numberOfSpots ) : IEnumerable
categorySelectList ( ) : IEnumerable
getRaffleTypes ( ) : IEnumerable

Method Details

Details() public method

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

EventController() public method

public EventController ( IEventRepository eventRepository ) : System
eventRepository IEventRepository
return System

ExportEvent() public method

public ExportEvent ( int id ) : System.Web.Mvc.FileContentResult
id int
return System.Web.Mvc.FileContentResult

Index() public method

public Index ( bool archive = false, int page = 1 ) : System.Web.Mvc.ActionResult
archive bool
page int
return System.Web.Mvc.ActionResult

Property Details

PageSize public_oe property

public int PageSize
return int