Esempio n. 1
0
        public async Task <ActionResult> DeleteWorkspace(string id)
        {
            AuthorizeAny(
                () => Actor.IsAdmin,
                () => _svc.CanManage(id, Actor.Id).Result
                );

            var workspace = await _svc.Delete(id);

            Log("deleted", workspace);

            await Hub.Clients
            .Group(workspace.Id)
            .TopoEvent(new BroadcastEvent <Workspace>(User, "TOPO.DELETED", workspace));

            return(Ok());
        }