public ActionResult <bool> AddCategoryToQuestion(string id, [FromBody] QuestionCategory qCategory) { try { qCategory.QuestionId = id; return(Ok(_cs.AddCategoryToQuestion(qCategory))); } catch (Exception e) { return(BadRequest(e.Message)); } }