Esempio n. 1
0
        public async Task <InvokeResult> DeleteTeamAsync(String teamId, EntityHeader org, EntityHeader user)
        {
            var assetSet = await _teamRepo.GetTeamAsync(teamId);

            await AuthorizeAsync(assetSet, AuthorizeActions.Delete, user, org);
            await ConfirmNoDepenenciesAsync(assetSet);

            await _teamRepo.DeleteTeamAsync(teamId);

            return(InvokeResult.Success);
        }