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)); }