Exemple #1
0
        public async Task <ActionResult <Workspace> > CloneWorkspace([FromRoute] string id)
        {
            await Validate(new Entity { Id = id });

            AuthorizeAny(
                () => Actor.IsAdmin,
                () => Actor.IsCreator,
                () => _svc.CheckWorkspaceLimit(Actor.Id).Result
                );

            return(Ok(
                       await _svc.Clone(id)
                       ));
        }