C# Class sep24migrations.Controllers.SubjectsController

Inheritance: ApiController
Mostra file Open project: peteratseneca/dps907fall2013

Public Methods

Method Description
Delete ( int id ) : void

Delete an existing Subject object

Get ( int id ) : HttpResponseMessage

One subject, by its identifier

Get ( ) : IEnumerable

All subjects, sorted by subject code

Get ( string list ) : IEnumerable

All subjects, for a lookup list

GetWithProgram ( int id, string program ) : HttpResponseMessage

One subject, by its identifier; includes its program information

Post ( SubjectAdd newSubject ) : HttpResponseMessage

Add a new Subject object to the collection

Put ( int id, SubjectFull updatedSubject ) : HttpResponseMessage

Update an existing Subject object, by its identifier

Method Details

Delete() public method

Delete an existing Subject object
public Delete ( int id ) : void
id int Subject object identifier
return void

Get() public method

One subject, by its identifier
public Get ( int id ) : HttpResponseMessage
id int Subject object identifier
return System.Net.Http.HttpResponseMessage

Get() public method

All subjects, sorted by subject code
public Get ( ) : IEnumerable
return IEnumerable

Get() public method

All subjects, for a lookup list
public Get ( string list ) : IEnumerable
list string Add the query string 'list'
return IEnumerable

GetWithProgram() public method

One subject, by its identifier; includes its program information
public GetWithProgram ( int id, string program ) : HttpResponseMessage
id int Subject object identifier
program string Add a query string 'program'
return System.Net.Http.HttpResponseMessage

Post() public method

Add a new Subject object to the collection
public Post ( SubjectAdd newSubject ) : HttpResponseMessage
newSubject sep24migrations.ViewModels.SubjectAdd Fully-configured Subject object, with its program identifier
return System.Net.Http.HttpResponseMessage

Put() public method

Update an existing Subject object, by its identifier
public Put ( int id, SubjectFull updatedSubject ) : HttpResponseMessage
id int Subject object identifier
updatedSubject sep24migrations.ViewModels.SubjectFull Updated Subject object in the message body
return System.Net.Http.HttpResponseMessage