Пример #1
0
        public ActionResult <QuestionModel> PostQuestion(QuestionModel question)
        {
            var retVal = _interviewService.CreateQuestion(question);

            if (retVal == null)
            {
                return(BadRequest("Question already exists"));
            }

            return(retVal.CreateModel());
        }