예제 #1
0
        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());
        }
예제 #2
0
        public async Task <ActionResult <bool> > Delist(int id)
        {
            await _gamespaceService.Delist(id);

            return(Ok());
        }