C# Класс sep24migrations.Controllers.SubjectsController

Наследование: ApiController
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Delete() публичный Метод

Delete an existing Subject object
public Delete ( int id ) : void
id int Subject object identifier
Результат void

Get() публичный Метод

One subject, by its identifier
public Get ( int id ) : HttpResponseMessage
id int Subject object identifier
Результат System.Net.Http.HttpResponseMessage

Get() публичный Метод

All subjects, sorted by subject code
public Get ( ) : IEnumerable
Результат IEnumerable

Get() публичный Метод

All subjects, for a lookup list
public Get ( string list ) : IEnumerable
list string Add the query string 'list'
Результат IEnumerable

GetWithProgram() публичный Метод

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'
Результат System.Net.Http.HttpResponseMessage

Post() публичный Метод

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
Результат System.Net.Http.HttpResponseMessage

Put() публичный Метод

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
Результат System.Net.Http.HttpResponseMessage