Bit.Api.Controllers.CiphersController.Delete C# (CSharp) Method

Delete() private method

private Delete ( string id ) : System.Threading.Tasks.Task
id string
return System.Threading.Tasks.Task
        public async Task Delete(string id)
        {
            var cipher = await _cipherRepository.GetByIdAsync(new Guid(id), new Guid(_userManager.GetUserId(User)));
            if(cipher == null)
            {
                throw new NotFoundException();
            }

            await _cipherService.DeleteAsync(cipher);
        }
    }