Ejemplo n.º 1
0
        private async Task GetUserNamesByAge()
        {
            var age   = _uiHandler.GetAgeToQuery();
            var names = await _userModel.GetUserNamesByAge(age);

            if (names.Count == 0)
            {
                _uiHandler.DisplayOnUi($"No users found for given age: {age}");
            }
            else
            {
                _uiHandler.DisplayOnUi(string.Join(",", names));
            }
        }