Exemplo n.º 1
0
 public async Task <IActionResult> UpdateQuestion(TopicInputModel model)
 {
     try
     {
         return(Ok());
     }
     catch (Exception ex)
     {
         return(new BadRequestObjectResult(ex.Message));
     }
 }
Exemplo n.º 2
0
 public ActionResult AddQuestion(TopicInputModel model)
 {
     try
     {
         _questionAppService.AddNewQuestion(model);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(new BadRequestObjectResult(ex.Message));
     }
 }
Exemplo n.º 3
0
 public void AddNewQuestion(TopicInputModel model)
 {
     _questionService.AddNewQuestion(_mapper.Map <TopicInputModel, Question>(model));
 }