public HttpResponseMessage Post(question newQuestion)
 {
     if(ModelState.IsValid)
     {
         bool OK = qDB.insertQuestion(newQuestion);
         if(OK)
         {
             return new HttpResponseMessage()
             {
                 StatusCode = HttpStatusCode.OK
             };
         }
     }
     return new HttpResponseMessage()
     {
         StatusCode = HttpStatusCode.NotFound,
         Content = new StringContent("Could not insert question")
     };
 }
        public bool insertQuestion(question newQuestion)
        {
            var question = new Question
            {
                email = newQuestion.email,
                questionTitle = newQuestion.questionTitle,
                questionText = newQuestion.questionText,
                upvotes = newQuestion.upvotes,
                downvotes = newQuestion.downvotes,
                categoryID = newQuestion.categoryID
            };

            question.category = getCategory(newQuestion.categoryID);

            try
            {
                db.Questions.Add(question);
                db.SaveChanges();
            }
            catch(Exception e)
            {
                return false;
            }
            return true;
        }