diff --git a/TaxPayerFull/Pages/BlogDetails.razor b/TaxPayerFull/Pages/BlogDetails.razor
index 6c11ff3..767785d 100644
--- a/TaxPayerFull/Pages/BlogDetails.razor
+++ b/TaxPayerFull/Pages/BlogDetails.razor
@@ -95,27 +95,31 @@
}
-
-
-
-
-
-
-
-
+ }
+
@@ -129,7 +133,10 @@
+
+
@code {
+
[Parameter]
public int? ItemID { get; set; }
diff --git a/TaxPayerFull/Pages/ListBlog.razor b/TaxPayerFull/Pages/ListBlog.razor
index eaad4bc..477073d 100644
--- a/TaxPayerFull/Pages/ListBlog.razor
+++ b/TaxPayerFull/Pages/ListBlog.razor
@@ -2,6 +2,7 @@
@inject HttpClient _hc
@layout BlogLayout
@page "/ListBlog"
+@page "/ListBlog/{Tag}"
@inject NavigationManager Navigation
دانشنامه
@@ -98,6 +99,9 @@
@code {
+ [Parameter]
+ public string? Tag { get; set; }
+
[Parameter,SupplyParameterFromQuery]
public int? PageIndex { get; set; }
@@ -106,7 +110,9 @@
protected override async Task OnParametersSetAsync()
{
if (PageIndex == null) PageIndex = 1;
- request = await _hc.GetFromJsonAsync>($"Base/LastBlog?PageIndex={PageIndex ?? 1}&PageSize=6");
+ string url = $"Base/LastBlog?PageIndex={PageIndex ?? 1}&PageSize=6";
+ if (!string.IsNullOrEmpty(Tag)) url += $" &Tag={Tag}";
+ request = await _hc.GetFromJsonAsync>(url);
await base.OnParametersSetAsync();
}
diff --git a/TaxPayerFull/Program.cs b/TaxPayerFull/Program.cs
index b3c5965..9180e1b 100644
--- a/TaxPayerFull/Program.cs
+++ b/TaxPayerFull/Program.cs
@@ -36,10 +36,10 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://195.88.208.142:7075/api/") });
//Home
-//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
+builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
//farzan
-builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
+//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
diff --git a/TaxPayerFull/wwwroot/index.html b/TaxPayerFull/wwwroot/index.html
index 5be79f6..b0d19e9 100644
--- a/TaxPayerFull/wwwroot/index.html
+++ b/TaxPayerFull/wwwroot/index.html
@@ -4,11 +4,12 @@
+
سیاهه (مدیریت کسب و کار)
-
+