// POST /api/Question
 public HttpResponseMessage Post(Question question)
 {
     if(!ModelState.IsValid && !new ValidationHelper()
         .modelStateIsValidAfterReRunValidationOnComplexAttributes(ModelState, question))
         return new HttpResponseMessage()
         {
             StatusCode = HttpStatusCode.BadRequest,
             Content = new StringContent("Failed to insert data. The model state is invalid: " +
             ModelState.ToString())
         };
     int questionID = new DAQuestion().insert(question);
     if(questionID == -1)
         return new HttpResponseMessage()
         {
             StatusCode = HttpStatusCode.ExpectationFailed,
             Content = new StringContent("Failed to insert data.")
         };
     var json = new JavaScriptSerializer();
     string data = json.Serialize(questionID);
     return new HttpResponseMessage()
         {
             StatusCode = HttpStatusCode.OK,
             Content = new StringContent(data, Encoding.UTF8, "application/json")
         };
 }
 // GET /api/Question/{ID}
 public HttpResponseMessage Get(int ID)
 {
     Question question = new DAQuestion().selectOne(ID);
     if(question == null)
         return new HttpResponseMessage()
         {
             StatusCode = HttpStatusCode.ExpectationFailed,
             Content = new StringContent("Failed to read data.")
         };
     var json = new JavaScriptSerializer();
     string data = json.Serialize(question);
     return new HttpResponseMessage()
     {
         StatusCode = HttpStatusCode.OK,
         Content = new StringContent(data, Encoding.UTF8, "application/json")
     };
 }