public async Task <ActionResult> RemoveWorker([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, Actor.IsAdmin); return(Ok()); }
public async Task <ActionResult> Delist(int id) { await _workspaceService.Delist(id); return(Ok()); }