Exemplo n.º 1
0
        public bool UpdateGroup(GroupDTO group)
        {
            var g = group.GetEntity();

            if (chatService.UpdateGroup(g, ConnectionToAccount[Context.ConnectionId].Id))
            {
                foreach (var id in chatService.GetUsersOfGroup(g.Id))
                {
                    Clients.Group(id.ToString())?.updateGroup(g);
                }
                return(true);
            }
            return(false);
        }