示例#1
0
        public async Task <KeyModel> Get(string ownerPublicKey, string id)
        {
            var ownerKey = await _keyData.GetByPublicKey(ownerPublicKey);

            var model = await _keyData.Get(ownerKey.Id, id);

            if (model == null)
            {
                var msg = _localizer["No key found for the specified owner and Id"];
                throw new ItemNotFoundException(msg);
            }

            return(model);
        }