/// <summary> /// /// </summary> /// <param name="group"></param> /// <param name="respondent"></param> /// <returns></returns> public async void RemoveRespondent(SurveyRespondentGroup group, SurveyRespondent respondent) { var responses = await this._unitOfWork.SurveyResponses.ListQuestionResponsesForRespondentAsync(respondent.Id, ""); this._unitOfWork.SurveyResponses.RemoveRange(responses); group.GroupMembers.Remove(respondent); }
/// <summary> /// /// </summary> /// <param name="group"></param> /// <param name="respondents"></param> public void AddRespondentGroupMembers(SurveyRespondentGroup group, List <SubRespondent> respondents) { group.GroupMembers.Clear(); group.GroupMembers.AddRange(respondents); }
/// <summary> /// /// </summary> /// <param name="group"></param> /// <param name="respondent"></param> public void AddRespondent(SurveyRespondentGroup group, SubRespondent respondent) { respondent.SurveyRespondentGroup = group; group.GroupMembers.Add(respondent); }