C# Класс openTill.Domain.Services.BrandService

A road map to perform the CRUD operations for a brand object
Наследование: IBrandService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
BrandService ( IBrandRepository brandRepository ) : System

Constructor that requires a repository as a parameter.

Delete ( Brand givenBrand ) : void

Method calls on repository to delete an existing brand in the database.

GetAllBrands ( ) : List

Method calls on repository to return a list of all Brands in the database

Insert ( BrandDTO givenBrand ) : void

Method calls on repository to insert a new brand into the database.

Update ( BrandDTO givenBrand ) : void

Method calls on repository to update an existing Brand in the database.

Описание методов

BrandService() публичный Метод

Constructor that requires a repository as a parameter.
public BrandService ( IBrandRepository brandRepository ) : System
brandRepository IBrandRepository Repository to be used.
Результат System

Delete() публичный Метод

Method calls on repository to delete an existing brand in the database.
public Delete ( Brand givenBrand ) : void
givenBrand Brand Name of the brand to be deleted.
Результат void

GetAllBrands() публичный Метод

Method calls on repository to return a list of all Brands in the database
public GetAllBrands ( ) : List
Результат List

Insert() публичный Метод

Method calls on repository to insert a new brand into the database.
public Insert ( BrandDTO givenBrand ) : void
givenBrand openTill.Domain.DTO.BrandDTO Brand Data Transfer Object to be inserted into the database.
Результат void

Update() публичный Метод

Method calls on repository to update an existing Brand in the database.
public Update ( BrandDTO givenBrand ) : void
givenBrand openTill.Domain.DTO.BrandDTO Brand Data Transfer Object to the updated in the database.
Результат void