Skip to content

Commit

Permalink
Add country flag to Home.razor and enhance CountryService
Browse files Browse the repository at this point in the history
  • Loading branch information
Clifftech123 committed Oct 4, 2024
1 parent 90b6d54 commit 9d4fba1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Binary file added Assets/BlazorSample.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Assets/logo.png
Binary file not shown.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
- 🗺️ Get country region by ISO 3166 country code
- ☎️ Get country phone code by ISO 3166 country code

![Blazor Sample](./Assets/BlazorSample.gif)

### Install Library
##### Package Manager
```cSharp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,7 @@ public IActionResult GetRegionsByCountryCode([FromQuery] string countryCode)
[HttpGet("flag")]
[ProducesResponseType(typeof(string), 200)]
[ProducesResponseType(404)]
public IActionResult GetCountryEmojiFlag([FromQuery] string countryCode)
{
var flag = _helper.GetCountryEmojiFlag(countryCode);
Console.WriteLine(flag);
if (flag == null)
{
return NotFound();
}
return Ok(flag);
}



/// <summary>

Check warning on line 107 in sample/CountryData.Sample.Web.API/Controllers/CountryController.cs

View workflow job for this annotation

GitHub Actions / build

XML comment is not placed on a valid language element
Expand Down

0 comments on commit 9d4fba1

Please sign in to comment.