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()); }
public async Task <ActionResult <bool> > Delist(int id) { await _gamespaceService.Delist(id); return(Ok()); }