C# Class Bzs.Server.ServerService.TeacherServerService

Represents a teacher server service.
Inheritance: ServerServiceBase
Datei anzeigen Open project: romankmueller/SchoolPlanner Class Usage Examples

Public Methods

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

Deletes a teacher.

GetTeacherLookup ( System.Guid accountId ) : List

Returns the teacher lookup data.

InsertTeacher ( TeacherEditDto itemToSave, System.Guid accountId ) : ResultDto

Inserts a teacher.

TeacherExists ( System.Guid id, BzsEntityContainer ctx ) : bool

Returns a value indicating whether the teacher exists.

TeacherServerService ( ) : System

Initializes a new instance of the TeacherServerService class.

UpdateTeacher ( TeacherEditDto itemToSave, System.Guid accountId ) : ResultDto

Updates a teacher.

Method Details

DeleteTeacher() public method

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

GetTeacherLookup() public method

Returns the teacher lookup data.
public GetTeacherLookup ( System.Guid accountId ) : List
accountId System.Guid The account identifier.
return List

InsertTeacher() public method

Inserts a teacher.
public InsertTeacher ( TeacherEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Teacher.TeacherEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto

TeacherExists() public method

Returns a value indicating whether the teacher exists.
public TeacherExists ( System.Guid id, BzsEntityContainer ctx ) : bool
id System.Guid The identifier.
ctx Bzs.Server.DataAccess.BzsEntityContainer The entity container.
return bool

TeacherServerService() public method

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

UpdateTeacher() public method

Updates a teacher.
public UpdateTeacher ( TeacherEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Teacher.TeacherEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto