C# Class PETUtility.Web.Controllers.CalendarController

Inheritance: Controller
Mostrar archivo Open project: pet-informatica/PET-Utility

Public Properties

Property Type Description
_EventService IEventService

Public Methods

Method Description
CalendarController ( IEventService eventService ) : System
Create ( Event event_ ) : System.Web.Mvc.ActionResult
Delete ( string id ) : System.Web.Mvc.ActionResult
Edit ( Event event_ ) : System.Web.Mvc.ActionResult
GetEvents ( double start, double end ) : System.Web.Mvc.ActionResult
Index ( string month, string year ) : System.Web.Mvc.ActionResult

Private Methods

Method Description
ConvertFromUnixTimestamp ( double timestamp ) : System.DateTime
_ConvertToFullCalendarFormat ( string date, string time ) : string
_PopulateDropdownMonth ( ) : void
_PopulateDropdownYear ( ) : void

Method Details

CalendarController() public method

public CalendarController ( IEventService eventService ) : System
eventService IEventService
return System

Create() public method

public Create ( Event event_ ) : System.Web.Mvc.ActionResult
event_ PETUtility.Data.Fundamentals.Models.Events.Event
return System.Web.Mvc.ActionResult

Delete() public method

public Delete ( string id ) : System.Web.Mvc.ActionResult
id string
return System.Web.Mvc.ActionResult

Edit() public method

public Edit ( Event event_ ) : System.Web.Mvc.ActionResult
event_ PETUtility.Data.Fundamentals.Models.Events.Event
return System.Web.Mvc.ActionResult

GetEvents() public method

public GetEvents ( double start, double end ) : System.Web.Mvc.ActionResult
start double
end double
return System.Web.Mvc.ActionResult

Index() public method

public Index ( string month, string year ) : System.Web.Mvc.ActionResult
month string
year string
return System.Web.Mvc.ActionResult

Property Details

_EventService public_oe property

public IEventService _EventService
return IEventService