C# Class CTCClassSchedule.Controllers.ApiController

Inheritance: Controller
Datei anzeigen Open project: BellevueCollege/ClassSchedule Class Usage Examples

Public Methods

Method Description
ApiController ( ) : System
GetSeats ( string classID ) : System.Web.Mvc.ActionResult

Retrieves and updates Seats Available data for the specified Section

GetSubjectList ( string yearQuarter ) : IList

Subjects ( string format, string YearQuarter ) : System.Web.Mvc.ActionResult

Returns an array of Course Subjects

To receive the list as a JSON array call this method with format=json: http://localhost/Api/Subjects?format=json

Private Methods

Method Description
ClassEdit ( System.Web.Mvc.FormCollection collection ) : System.Web.Mvc.ActionResult
ClassEdit ( string CourseNumber, string Subject, bool IsCommonCourse ) : System.Web.Mvc.ActionResult
CrossListedCourses ( string courseID, string yearQuarterID ) : System.Web.Mvc.JsonResult
Export ( String YearQuarterID ) : System.Web.Mvc.FileResult
UpdateSectionFootnote ( string classId, string newFootnoteText ) : System.Web.Mvc.ActionResult

Method Details

ApiController() public method

public ApiController ( ) : System
return System

GetSeats() public method

Retrieves and updates Seats Available data for the specified Section
public GetSeats ( string classID ) : System.Web.Mvc.ActionResult
classID string
return System.Web.Mvc.ActionResult

GetSubjectList() public static method

public static GetSubjectList ( string yearQuarter ) : IList
yearQuarter string
return IList

Subjects() public method

Returns an array of Course Subjects
To receive the list as a JSON array call this method with format=json: http://localhost/Api/Subjects?format=json
public Subjects ( string format, string YearQuarter ) : System.Web.Mvc.ActionResult
format string
YearQuarter string
return System.Web.Mvc.ActionResult