C# Class sep20v1.ViewModels.Repo_Program

Inheritance: RepositoryBase
Mostra file Open project: peteratseneca/dps907fall2013

Public Methods

Method Description
AddNew ( ProgramPublic newProgram ) : ProgramFull

Add new

DeleteExisting ( int id ) : void

Delete existing

GetAll ( ) : IEnumerable

Get all

GetAllWithSubjects ( ) : IEnumerable

Get all, with the associated Subject object collections

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 method

Add new
public AddNew ( ProgramPublic newProgram ) : ProgramFull
newProgram ProgramPublic New ProgramPublic object
return ProgramFull

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

GetAllWithSubjects() public method

Get all, with the associated Subject object collections
public GetAllWithSubjects ( ) : IEnumerable
return IEnumerable

GetById() public method

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

GetList() public method

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

UpdateExisting() public method

Update existing
public UpdateExisting ( ProgramBase updatedProgram ) : ProgramFull
updatedProgram ProgramBase Replacement ProgramBase object
return ProgramFull