public override Task <CountryReply> GetCountry(CountryRequest request, ServerCallContext context) { _logger.LogInformation("Querying for country..."); CountryReply country = null; try { country = _Db.GetCountries() .Where(candidate => String.Equals(request.Country, candidate.CountryFull, StringComparison.OrdinalIgnoreCase)) .First(); } catch (Exception ex) { _logger.LogError($"{ex.GetType()} occured; {ex.Message}; "); country = new CountryReply { Message = ex.Message, CountryFull = "" }; } if (country.CountryFull != "") { country.Players.AddRange(GetPlayersFromCountry(country.CountryFull)); } return(Task.FromResult(country)); }