예제 #1
0
 public JsonResult Question(string strategyid, string text)
 {
     try
     {
         _strategyService.AddQuestion(strategyid, text);
         return(Json(new { text = text }));
     }
     catch (Exception ex)
     {
         return(Json(new { error = ex.Message }));
     }
 }