public void AddMembersToGroup(MembersOfGroup member) { if (member != null) { member.Id = Guid.NewGuid(); _groupRepository.AddMembers(member); } }