C# Class Bzs.Server.ServerService.RoomServerService

Represents a room server service.
Inheritance: ServerServiceBase
Show file Open project: romankmueller/SchoolPlanner Class Usage Examples

Public Methods

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

Deletes the room.

GetRoomLookup ( System.Guid accountId ) : List

Returns the room lookup data.

InsertRoom ( RoomEditDto itemToSave, System.Guid accountId ) : ResultDto

Inserts a room.

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

Returns a value indicating whether the room exists.

RoomServerService ( ) : System

Initializes a new instance of the RoomServerService class.

UpdateRoom ( RoomEditDto itemToSave, System.Guid accountId ) : ResultDto

Updates a room.

Method Details

DeleteRoom() public method

Deletes the room.
public DeleteRoom ( System.Guid id, System.Guid accountId ) : ResultDto
id System.Guid The room identifier.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto

GetRoomLookup() public method

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

InsertRoom() public method

Inserts a room.
public InsertRoom ( RoomEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Room.RoomEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto

RoomExists() public method

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

RoomServerService() public method

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

UpdateRoom() public method

Updates a room.
public UpdateRoom ( RoomEditDto itemToSave, System.Guid accountId ) : ResultDto
itemToSave Bzs.Portable.DataTransferObjects.Room.RoomEditDto The item to save.
accountId System.Guid The account identifier.
return Bzs.Portable.DataTransferObjects.Base.ResultDto