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

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