Beispiel #1
0
 public void DeleteMembersInConference(Guid confId)
 {
     if (confId != null)
     {
         List <Guid> listMemId     = new List <Guid>();
         var         listMembersId = _conferRepository.GetMembersIdByConferenceId(confId);
         if (listMembersId.Count() != 0)
         {
             foreach (var id in listMembersId)
             {
                 var memberId = _conferRepository.GetConferenceIdByUserId(id);
                 listMemId.Add(memberId);
             }
             foreach (var i in listMemId)
             {
                 _conferRepository.DeleteMembers(i);
             }
         }
     }
 }