Skip to content

Commit 9d4fba1

Browse files
committed
Add country flag to Home.razor and enhance CountryService
1 parent 90b6d54 commit 9d4fba1

4 files changed

Lines changed: 3 additions & 10 deletions

File tree

Assets/BlazorSample.gif

95.2 MB
Loading

Assets/logo.png

-26.4 KB
Binary file not shown.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
- 🗺️ Get country region by ISO 3166 country code
2121
- ☎️ Get country phone code by ISO 3166 country code
2222

23+
![Blazor Sample](./Assets/BlazorSample.gif)
24+
2325
### Install Library
2426
##### Package Manager
2527
```cSharp

sample/CountryData.Sample.Web.API/Controllers/CountryController.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,16 +101,7 @@ public IActionResult GetRegionsByCountryCode([FromQuery] string countryCode)
101101
[HttpGet("flag")]
102102
[ProducesResponseType(typeof(string), 200)]
103103
[ProducesResponseType(404)]
104-
public IActionResult GetCountryEmojiFlag([FromQuery] string countryCode)
105-
{
106-
var flag = _helper.GetCountryEmojiFlag(countryCode);
107-
Console.WriteLine(flag);
108-
if (flag == null)
109-
{
110-
return NotFound();
111-
}
112-
return Ok(flag);
113-
}
104+
114105

115106

116107
/// <summary>

0 commit comments

Comments
 (0)