public async Task <IActionResult> Post([FromBody] Question question) { try { var id = await QuestionRepo.CreateQuestion(question); Question model = await QuestionRepo.GetQuestionById(id); return(CreatedAtRoute("Get", new { Id = id }, model)); } catch (ArgumentException ex) { return(BadRequest(ex.Message)); } }