C# Class sep24migrations.Controllers.ProgramsController

Methods for the academic programs
Inheritance: ApiController
Exibir arquivo Open project: peteratseneca/dps907fall2013

Public Methods

Method Description
Delete ( int id ) : void
Get ( int id ) : HttpResponseMessage

One specific program, by its identifier

Get ( ) : IEnumerable

All academic programs, sorted by program code

GetList ( string list ) : IEnumerable

All academic programs, to be used in a lookup list

GetWithSubjects ( string subjects ) : IEnumerable

All academic programs, each with their subjects

Post ( ProgramPublic newProgram ) : HttpResponseMessage
Put ( int id, ProgramBase updatedProgram ) : HttpResponseMessage

Method Details

Delete() public method

public Delete ( int id ) : void
id int
return void

Get() public method

One specific program, by its identifier
public Get ( int id ) : HttpResponseMessage
id int Program identifier
return System.Net.Http.HttpResponseMessage

Get() public method

All academic programs, sorted by program code
public Get ( ) : IEnumerable
return IEnumerable

GetList() public method

All academic programs, to be used in a lookup list
public GetList ( string list ) : IEnumerable
list string Append the query string 'list'
return IEnumerable

GetWithSubjects() public method

All academic programs, each with their subjects
public GetWithSubjects ( string subjects ) : IEnumerable
subjects string Append the query string 'subjects'
return IEnumerable

Post() public method

public Post ( ProgramPublic newProgram ) : HttpResponseMessage
newProgram sep24migrations.ViewModels.ProgramPublic
return System.Net.Http.HttpResponseMessage

Put() public method

public Put ( int id, ProgramBase updatedProgram ) : HttpResponseMessage
id int
updatedProgram sep24migrations.ViewModels.ProgramBase
return System.Net.Http.HttpResponseMessage