Exemple #1
0
        public string CreateQuestion(Guid userId, [FromBody] QuestionDTO question)
        {
            string responce = questionService.CreateQuestion(question);

            return(responce.Equals("") ? "Fail" : "Success:" + responce);
        }
Exemple #2
0
 public string UpdateQuestion(Guid userId, [FromBody] QuestionDTO question)
 {
     return(questionService.UpdateQuestion(question) ? "Success" : "Fail");
 }