コード例 #1
0
        public async Task <IActionResult> GetFriends([FromRoute] int id)
        {
            var friends = await _friendAppService
                          .GetByFriendIdAsync(id)
                          .ConfigureAwait(false);

            if (friends is null)
            {
                return(NoContent());
            }

            return(Ok(friends));
        }