public async Task <ActionResult <bool> > RemovePlayer([FromRoute] string id, string sid)
        {
            await Validate(new Entity { Id = id });

            AuthorizeAny(
                () => Actor.IsAdmin,
                () => _svc.CanManage(id, Actor.Id).Result
                );

            await _svc.Delist(id, sid);

            return(Ok());
        }
Example #2
0
        public async Task <ActionResult <bool> > Delist(int id)
        {
            await _gamespaceService.Delist(id);

            return(Ok());
        }