C# Class WorldSurveyKit.Controllers.QuestionsController

Inheritance: ApiController
Mostra file Open project: ntheile/World-Survey-Kit

Public Methods

Method Description
DeleteQuestions ( int id ) : HttpResponseMessage

Delete's a question from a file, re-orders all the questions in a file it also does a manual cascade and deletes all responses related to this question

GetQuestions ( int id ) : HttpResponseMessage

GET the data about a question by id

PostQuestions ( Questions questions ) : HttpResponseMessage

CREATE's a new question

PutQuestions ( int id, Questions questions ) : HttpResponseMessage

UPDATE's a question. Order logic: -1 = make order first, -2 = no change in order, -3 = make order last, Anything else is the questionId the current question should go after

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteQuestions() public method

Delete's a question from a file, re-orders all the questions in a file it also does a manual cascade and deletes all responses related to this question
public DeleteQuestions ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetQuestions() public method

GET the data about a question by id
public GetQuestions ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

PostQuestions() public method

CREATE's a new question
public PostQuestions ( Questions questions ) : HttpResponseMessage
questions WorldSurveyKit.Models.Questions
return System.Net.Http.HttpResponseMessage

PutQuestions() public method

UPDATE's a question. Order logic: -1 = make order first, -2 = no change in order, -3 = make order last, Anything else is the questionId the current question should go after
public PutQuestions ( int id, Questions questions ) : HttpResponseMessage
id int
questions WorldSurveyKit.Models.Questions
return System.Net.Http.HttpResponseMessage