コード例 #1
0
ファイル: CoachsService.cs プロジェクト: Feldrise/BuildUp
        // Getting the coach's form
        public async Task <List <BuildupFormQA> > GetCoachFormFromAdminAsync(string coachId)
        {
            Coach coach = await GetCoachFromCoachId(coachId);

            if (coach == null)
            {
                throw new Exception("The coach doesn't exist");
            }

            return(await _formsService.GetFormQAsAsync(coach.UserId));
        }
コード例 #2
0
ファイル: BuildersService.cs プロジェクト: Feldrise/BuildUp
        // Getting the builder's form
        public async Task <List <BuildupFormQA> > GetBuilderFormFromAdminAsync(string builderId)
        {
            Builder builder = await GetBuilderFromBuilderId(builderId);

            if (builder == null)
            {
                throw new Exception("The builder doesn't exist");
            }

            return(await _formsService.GetFormQAsAsync(builder.UserId));
        }