private async Task <TaskResult> DoSingle(int heroId) { var p1 = await writer.ImproveHeroAsync(heroId); if (p1 == null) { return(TaskResult.LostConnection); } if (p1.HasError) { // Không đủ chiến tích. return(TaskResult.CanBeDone); } // Giữ chỉ số. var p2 = await writer.KeepStatsAsync(heroId); if (p2 == null) { return(TaskResult.LostConnection); } return(TaskResult.Done); }