C# Class sep20v1.ViewModels.Repo_Subject

Inheritance: RepositoryBase
Afficher le fichier Open project: peteratseneca/dps907fall2013

Méthodes publiques

Méthode 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 méthode

Add new
public AddNew ( SubjectAdd newSubject ) : SubjectFull
newSubject SubjectAdd New SubjectAdd object
Résultat SubjectFull

DeleteExisting() public méthode

Delete existing
public DeleteExisting ( int id ) : void
id int Identifier
Résultat void

GetAll() public méthode

Get all
public GetAll ( ) : IEnumerable
Résultat IEnumerable

GetById() public méthode

Get one by its Id
public GetById ( int id ) : SubjectFull
id int Identifier
Résultat SubjectFull

GetByIdWithProgram() public méthode

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

GetList() public méthode

Get all, for a lookup list
public GetList ( ) : IEnumerable
Résultat IEnumerable

UpdateExisting() public méthode

Update existing
public UpdateExisting ( SubjectFull updatedSubject ) : SubjectFull
updatedSubject SubjectFull Replacement SubjectFull object
Résultat SubjectFull