public IActionResult postQuestion([FromBody] Question newQuestion = null)
 {
     if (newQuestion != null)
     {
         questionFacade.postQuestion(newQuestion);
     }
     return(Created("", newQuestion));
 }
示例#2
0
 public IActionResult postQuestion([FromBody] Question newQuestion)
 {
     return(Created("", questionFacade.postQuestion(newQuestion)));
 }