C# Class sep24migrations.ViewModels.Repo_Subject

Inheritance: RepositoryBase
Exibir arquivo Open project: peteratseneca/dps907fall2013

Public Methods

Method Description
AddNew ( SubjectAdd newSubject ) : SubjectFull

Add new

DeleteExisting ( int id ) : void

Delete existing

GetAll ( ) : IEnumerable

Get all

GetById ( int id ) : SubjectFull

Get one by its Id

GetByIdWithProgram ( int id ) : SubjectWithProgram

Get one by its Id, and get some of its Program properties

GetList ( ) : IEnumerable

Get all, for a lookup list

UpdateExisting ( SubjectFull updatedSubject ) : SubjectFull

Update existing

Method Details

AddNew() public method

Add new
public AddNew ( SubjectAdd newSubject ) : SubjectFull
newSubject SubjectAdd New SubjectAdd 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

GetByIdWithProgram() public method

Get one by its Id, and get some of its Program properties
public GetByIdWithProgram ( int id ) : SubjectWithProgram
id int Identifier
return SubjectWithProgram

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