C# Class Neddle.CourseManager

Contains methods for working with Course entities.
Datei anzeigen Open project: kcargile/neddle

Public Methods

Method Description
CourseManager ( ICourseDataProvider dataProvider ) : System

Initializes a new instance of the CourseManager class.

DeleteCourse ( Course course ) : int

Deletes the specified Course.

Exists ( Course course, bool throwIfNotFound = false ) : bool

Determines if the specified course exists in persistent storage.

LoadCourse ( System.Guid id ) : Course

Loads the course having the specified id.

SaveCourse ( Course course ) : Course

Save the course.

Method Details

CourseManager() public method

Initializes a new instance of the CourseManager class.
public CourseManager ( ICourseDataProvider dataProvider ) : System
dataProvider ICourseDataProvider The data provider.
return System

DeleteCourse() public method

Deletes the specified Course.
///
public DeleteCourse ( Course course ) : int
course Course The course.
return int

Exists() public method

Determines if the specified course exists in persistent storage.
public Exists ( Course course, bool throwIfNotFound = false ) : bool
course Course The course.
throwIfNotFound bool if set to true throws a if not found.
return bool

LoadCourse() public method

Loads the course having the specified id.
public LoadCourse ( System.Guid id ) : Course
id System.Guid The identifier.
return Course

SaveCourse() public method

Save the course.
public SaveCourse ( Course course ) : Course
course Course The course.
return Course