public async Task <TaskModuleResponse> Handle(Activity activity) { var invokeActionData = activity.GetInvokeActionData(); var competition = await _competitionService.GetCompetition(invokeActionData.CompetitionId); var canEdit = competition.CreatorAadObjectId == activity.From.AadObjectId; if (canEdit) { return(_activityBuilder.CreateDraftCompetitionEditTaskInfoResponse(competition, string.Empty, activity.Locale)); } else { return(_activityBuilder.CreateEditNotAllowedTaskInfoResponse(competition)); } }