I can see the way to create a group as:
public Task CreateGroup(string group)
{
return Groups.Add(Context.ConnectionId, group);
}
How do I create an array of groups for Ids
of an entity Channel
(having Id and Name properties) even though the only connection id I have is context.ConnectionId
.
(Edited with Task
syntax)
If i have an array of group names, i want to be able to create groups on the basis of it. Something like ...
public void CreateGroups(string[] groups)
{
Groups.AddRange(Context.ConnectionId, groups);
}