C# Class openTill.Persistence.BrandRepository

The class that actually performs the CRUD operations of a Brand.
Inheritance: IBrandRepository
Show file Open project: CIT275DevGroup/openTill

Public Methods

Method Description
Delete ( BrandDTO brandDel ) : void

Deletes a brand.

GetAll ( ) : IEnumerable

Returns all brands.

Insert ( BrandDTO newBrand ) : void

Submits a new brand for persistence.

Update ( BrandDTO brandUpdate ) : void

Updates an existing brand.

Method Details

Delete() public method

Deletes a brand.
public Delete ( BrandDTO brandDel ) : void
brandDel openTill.Domain.DTO.BrandDTO Brand to delete
return void

GetAll() public method

Returns all brands.
public GetAll ( ) : IEnumerable
return IEnumerable

Insert() public method

Submits a new brand for persistence.
public Insert ( BrandDTO newBrand ) : void
newBrand openTill.Domain.DTO.BrandDTO New brand to save.
return void

Update() public method

Updates an existing brand.
public Update ( BrandDTO brandUpdate ) : void
brandUpdate openTill.Domain.DTO.BrandDTO Brand to update
return void