示例#1
0
        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());
        }
示例#2
0
        public async Task <ActionResult> Delist(int id)
        {
            await _workspaceService.Delist(id);

            return(Ok());
        }