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()); } }