コード例 #1
0
        public async Task <IActionResult> GetByUserId(int userId)
        {
            var info = await _infoService.GetByUserId(userId);

            if (info != null)
            {
                return(Ok(info));
            }

            return(NotFound());
        }