C# Class Bzs.Server.ServerService.LessonServerService

Represents a lesson server service.
Inheritance: ServerServiceBase
Mostrar archivo Open project: romankmueller/SchoolPlanner Class Usage Examples

Public Methods

Method Description
DeleteLesson ( System.Guid id, System.Guid accountId ) : ResultDto

Deletes a lesson.

GetLesson ( System.Guid id, System.Guid accountId ) : LessonEditDto

Returns the lesson.

GetLessonsOfDay ( System.Guid dayId, System.Guid accountId ) : List

Returns the lessons of a day.

GetLessonsOfDayToDisplay ( System.Guid dayId, System.Guid accountId ) : List

Returns the lessons of a day to display.

GetLessonsOfWeek ( System.Guid accountId ) : List

Returns the lessons of the week.

InsertUpdateLesson ( LessonEditDto itemToSave, System.Guid accountId ) : ResultDto

Inserts or updates a lesson.

LessonServerService ( ) : System

Initializes a new instance of the LessonServerService class.

UpdateLesson ( LessonEditDto itemToSave, System.Guid accountId ) : ResultDto

Updates a lesson.

Private Methods

Method Description
FillLessonEditDto ( LessonEditDto item, LessonEntity entity ) : LessonEditDto

Fills the lesson edit data transfer object.

Method Details

DeleteLesson() public method

Deletes a lesson.
public DeleteLesson ( System.Guid id, System.Guid accountId ) : ResultDto
id System.Guid The lesson identifier.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto

GetLesson() public method

Returns the lesson.
public GetLesson ( System.Guid id, System.Guid accountId ) : LessonEditDto
id System.Guid The lesson identifier.
accountId System.Guid The account identifier.
return LessonEditDto

GetLessonsOfDay() public method

Returns the lessons of a day.
public GetLessonsOfDay ( System.Guid dayId, System.Guid accountId ) : List
dayId System.Guid The day identifier.
accountId System.Guid The account identifier.
return List

GetLessonsOfDayToDisplay() public method

Returns the lessons of a day to display.
public GetLessonsOfDayToDisplay ( System.Guid dayId, System.Guid accountId ) : List
dayId System.Guid The day identifier.
accountId System.Guid The account identifier.
return List

GetLessonsOfWeek() public method

Returns the lessons of the week.
public GetLessonsOfWeek ( System.Guid accountId ) : List
accountId System.Guid The account identifier.
return List

InsertUpdateLesson() public method

Inserts or updates a lesson.
public InsertUpdateLesson ( LessonEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave LessonEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto

LessonServerService() public method

Initializes a new instance of the LessonServerService class.
public LessonServerService ( ) : System
return System

UpdateLesson() public method

Updates a lesson.
public UpdateLesson ( LessonEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave LessonEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto