예제 #1
0
        public IActionResult GetKeyByUser(Guid userId, Guid keyId)
        {
            var userFound = _userApplication.Get(userId).Data;

            if (userFound == null)
            {
                return(NotFound());
            }

            var keyDto = _userApplication.GetKey(userId, keyId).Data;

            if (keyDto == null)
            {
                return(NotFound());
            }

            return(Ok(CreateLink(keyDto)));
        }