C# Class sep17v1.ViewModels.Repo_Program

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

Méthodes publiques

Méthode Description
AddNew ( ProgramPublic newProgram ) : ProgramFull

Add new

DeleteExisting ( int id ) : void

Delete existing

GetAll ( ) : IEnumerable

Get all

GetById ( int id ) : ProgramFull

Get one by its Id

GetList ( ) : IEnumerable

Get all, for a lookup list

UpdateExisting ( ProgramBase updatedProgram ) : ProgramFull

Update existing

Method Details

AddNew() public méthode

Add new
public AddNew ( ProgramPublic newProgram ) : ProgramFull
newProgram ProgramPublic New ProgramPublic object
Résultat ProgramFull

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 ) : ProgramFull
id int Identifier
Résultat ProgramFull

GetList() public méthode

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

UpdateExisting() public méthode

Update existing
public UpdateExisting ( ProgramBase updatedProgram ) : ProgramFull
updatedProgram ProgramBase Replacement ProgramBase object
Résultat ProgramFull