C# Class Bzs.Server.CloudServices.AppService

Represents an application service.
Inheritance: IAppService
Afficher le fichier Open project: romankmueller/SchoolPlanner

Méthodes publiques

Méthode Description
AppService ( ) : System

Initializes a new instance of the AppService class.

DeleteLesson ( IdDto idToDelete ) : ResultDto

Deletes a lesson.

DeleteRoom ( IdDto idToDelete ) : ResultDto

Deletes a room.

DeleteSubject ( IdDto idToDelete ) : ResultDto

Deletes a subject.

DeleteTeacher ( IdDto idToDelete ) : ResultDto

Deletes a teacher.

GetDayLookup ( ) : List

Returns the day lookup.

GetLesson ( string id ) : LessonEditDto

Returns the lesson.

GetLessonOfDay ( string id ) : List

Returns the lessons of a day.

GetLessonOfDayToDisplay ( string id ) : List

Returns the lesson of a day to display.

GetLessonOfWeek ( ) : List

Returns the lessons of a week.

GetRoomLookup ( ) : List

Returns the room lookup.

GetSubjectLookup ( ) : List

Returns the subject lookup.

GetTeacherLookup ( ) : List

Returns the teacher lookup.

InsertLesson ( LessonEditDto itemToSave ) : ResultDto

Inserts a lesson.

InsertRoom ( RoomEditDto itemToSave ) : ResultDto

Inserts a room.

InsertSubject ( SubjectEditDto itemToSave ) : ResultDto

Inserts a subject.

InsertTeacher ( TeacherEditDto itemToSave ) : ResultDto

Inserts a teacher.

Login ( ) : LoginResultDto

Login to the application.

Ping ( ) : bool

Returns a ping.

Register ( RegisterDto data ) : ResultDto

Represents a register service.

RetrieveCredentials ( RetrievePasswordDto request ) : void

Retrieves the credentials.

UpdateLesson ( LessonEditDto itemToSave ) : ResultDto

Updates a lesson.

UpdateRoom ( RoomEditDto itemToSave ) : ResultDto

Updates a room.

UpdateSubject ( SubjectEditDto itemToSave ) : ResultDto

Updates a subject.

UpdateTeacher ( TeacherEditDto itemToSave ) : ResultDto

Updates a teacher.

Private Methods

Méthode Description
GetCredentialsFromRequest ( ) : AccountPassword

Returns the credentials from the request.

SetResponseHeaderCacheExpiration ( int minutesOfExpiration = -1 ) : void

Sets the response header cache expiration.

Method Details

AppService() public méthode

Initializes a new instance of the AppService class.
public AppService ( ) : System
Résultat System

DeleteLesson() public méthode

Deletes a lesson.
public DeleteLesson ( IdDto idToDelete ) : ResultDto
idToDelete IdDto The identifier.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

DeleteRoom() public méthode

Deletes a room.
public DeleteRoom ( IdDto idToDelete ) : ResultDto
idToDelete IdDto The identifier.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

DeleteSubject() public méthode

Deletes a subject.
public DeleteSubject ( IdDto idToDelete ) : ResultDto
idToDelete IdDto The identifier.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

DeleteTeacher() public méthode

Deletes a teacher.
public DeleteTeacher ( IdDto idToDelete ) : ResultDto
idToDelete IdDto The identifier.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

GetDayLookup() public méthode

Returns the day lookup.
public GetDayLookup ( ) : List
Résultat List

GetLesson() public méthode

Returns the lesson.
public GetLesson ( string id ) : LessonEditDto
id string The identifier.
Résultat LessonEditDto

GetLessonOfDay() public méthode

Returns the lessons of a day.
public GetLessonOfDay ( string id ) : List
id string The day identifier.
Résultat List

GetLessonOfDayToDisplay() public méthode

Returns the lesson of a day to display.
public GetLessonOfDayToDisplay ( string id ) : List
id string The day identifier.
Résultat List

GetLessonOfWeek() public méthode

Returns the lessons of a week.
public GetLessonOfWeek ( ) : List
Résultat List

GetRoomLookup() public méthode

Returns the room lookup.
public GetRoomLookup ( ) : List
Résultat List

GetSubjectLookup() public méthode

Returns the subject lookup.
public GetSubjectLookup ( ) : List
Résultat List

GetTeacherLookup() public méthode

Returns the teacher lookup.
public GetTeacherLookup ( ) : List
Résultat List

InsertLesson() public méthode

Inserts a lesson.
public InsertLesson ( LessonEditDto itemToSave ) : ResultDto
itemToSave LessonEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

InsertRoom() public méthode

Inserts a room.
public InsertRoom ( RoomEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Room.RoomEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

InsertSubject() public méthode

Inserts a subject.
public InsertSubject ( SubjectEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Subject.SubjectEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

InsertTeacher() public méthode

Inserts a teacher.
public InsertTeacher ( TeacherEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Teacher.TeacherEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

Login() public méthode

Login to the application.
public Login ( ) : LoginResultDto
Résultat Bzs.Portable.DataTransferObjects.Authentication.LoginResultDto

Ping() public méthode

Returns a ping.
public Ping ( ) : bool
Résultat bool

Register() public méthode

Represents a register service.
public Register ( RegisterDto data ) : ResultDto
data Bzs.Portable.DataTransferObjects.Account.RegisterDto The data to register.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

RetrieveCredentials() public méthode

Retrieves the credentials.
public RetrieveCredentials ( RetrievePasswordDto request ) : void
request Bzs.Portable.DataTransferObjects.Account.RetrievePasswordDto The retrieve credentials request.
Résultat void

UpdateLesson() public méthode

Updates a lesson.
public UpdateLesson ( LessonEditDto itemToSave ) : ResultDto
itemToSave LessonEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

UpdateRoom() public méthode

Updates a room.
public UpdateRoom ( RoomEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Room.RoomEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

UpdateSubject() public méthode

Updates a subject.
public UpdateSubject ( SubjectEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Subject.SubjectEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto

UpdateTeacher() public méthode

Updates a teacher.
public UpdateTeacher ( TeacherEditDto itemToSave ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Teacher.TeacherEditDto The item to save.
Résultat Bzs.Portable.DataTransferObjects.Base.ResultDto