C# Class IS.Model.Service.CathedraService

Сервис для работы с кафедры.
Show file Open project: dha01/IS Class Usage Examples

Public Methods

Method Description
CathedraService ( ) : System

Конструктор без параметров.

CathedraService ( ICathedraRepository cathedra_repository ) : System

Конструктор класс.

Create ( CathedraItem cathedra ) : int

Создает кафедру.

Delete ( int id ) : void

Удаляет кафедру.

GetById ( int id ) : CathedraItem

Получает кафедру по идентификатору.

GetList ( ) : List

Получает список кафедр.

Update ( CathedraItem cathedra ) : void

Измененяет данные о кафедре.

Method Details

CathedraService() public method

Конструктор без параметров.
public CathedraService ( ) : System
return System

CathedraService() public method

Конструктор класс.
public CathedraService ( ICathedraRepository cathedra_repository ) : System
cathedra_repository ICathedraRepository Интерфейс репозитория кафедр.
return System

Create() public method

Создает кафедру.
public Create ( CathedraItem cathedra ) : int
cathedra IS.Model.Item.Cathedra.CathedraItem Кафедра.
return int

Delete() public method

Удаляет кафедру.
public Delete ( int id ) : void
id int Идентификатор.
return void

GetById() public method

Получает кафедру по идентификатору.
public GetById ( int id ) : CathedraItem
id int Идентификатор.
return IS.Model.Item.Cathedra.CathedraItem

GetList() public method

Получает список кафедр.
public GetList ( ) : List
return List

Update() public method

Измененяет данные о кафедре.
public Update ( CathedraItem cathedra ) : void
cathedra IS.Model.Item.Cathedra.CathedraItem Кафедра.
return void