C# Class ITimeU.Models.EventModel

Mostrar archivo Open project: heinek/ITimeU Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Delete ( ) : void

Deletes this event.

EventModel ( ) : System
EventModel ( string name, System.DateTime date ) : System

Initializes a new instance of the EventModel class.

EventNameExists ( string eventName ) : bool
GetById ( int id ) : EventModel
GetEvents ( ) : List
Save ( ) : bool

Saves this event.

Method Details

Delete() public method

Deletes this event.
public Delete ( ) : void
return void

EventModel() public method

public EventModel ( ) : System
return System

EventModel() public method

Initializes a new instance of the EventModel class.
public EventModel ( string name, System.DateTime date ) : System
name string The name.
date System.DateTime The date.
return System

EventNameExists() public static method

public static EventNameExists ( string eventName ) : bool
eventName string
return bool

GetById() public static method

public static GetById ( int id ) : EventModel
id int
return EventModel

GetEvents() public static method

public static GetEvents ( ) : List
return List

Save() public method

Saves this event.
public Save ( ) : bool
return bool