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