public IActionResult Action(string taskId, [FromQuery] ActionType action = ActionType.Query)
 {
     if (action == ActionType.Query)
     {
         return(Success(_taskAppService.GetTask(taskId)));
     }
     else
     {
         _taskAppService.Control(taskId, action);
         return(Success());
     }
 }
 public IActionResult Action(long taskId, [FromQuery] ActionType action)
 {
     _taskAppService.Control(taskId, action);
     return(Success());
 }