Bit.Api.Controllers.SitesController.Delete C# (CSharp) Méthode

Delete() private méthode

private Delete ( string id ) : System.Threading.Tasks.Task
id string
Résultat System.Threading.Tasks.Task
        public async Task Delete(string id)
        {
            var site = await _cipherRepository.GetByIdAsync(new Guid(id), new Guid(_userManager.GetUserId(User)));
            if(site == null || site.Type != Core.Enums.CipherType.Site)
            {
                throw new NotFoundException();
            }

            await _cipherService.DeleteAsync(site);
        }