Пример #1
0
 public IHttpActionResult POST(QuestionVM vm)
 {
     if (vm.Question.Id == 0)
     {
         ;
         return(Ok(_adapter.CreateQuestion(vm)));
     }
     else
     {
         _adapter.AddAnswers(vm);
         return(Ok());
     }
 }