C# Class sep17v1.ViewModels.Repo_Subject

Inheritance: RepositoryBase
Mostra file Open project: peteratseneca/dps907fall2013

Public Methods

Method Description
AddNew ( SubjectPublic newSubject ) : SubjectFull

Add new

DeleteExisting ( int id ) : void

Delete existing

GetAll ( ) : IEnumerable

Get all

GetById ( int id ) : SubjectFull

Get one by its Id

GetList ( ) : IEnumerable

Get all, for a lookup list

UpdateExisting ( SubjectFull updatedSubject ) : SubjectFull

Update existing

Method Details

AddNew() public method

Add new
public AddNew ( SubjectPublic newSubject ) : SubjectFull
newSubject SubjectPublic New SubjectPublic object
return SubjectFull

DeleteExisting() public method

Delete existing
public DeleteExisting ( int id ) : void
id int Identifier
return void

GetAll() public method

Get all
public GetAll ( ) : IEnumerable
return IEnumerable

GetById() public method

Get one by its Id
public GetById ( int id ) : SubjectFull
id int Identifier
return SubjectFull

GetList() public method

Get all, for a lookup list
public GetList ( ) : IEnumerable
return IEnumerable

UpdateExisting() public method

Update existing
public UpdateExisting ( SubjectFull updatedSubject ) : SubjectFull
updatedSubject SubjectFull Replacement SubjectFull object
return SubjectFull