diff --git a/.version b/.version index 55f5571..3904f41 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -0.27.34.55 \ No newline at end of file +0.27.35.57 \ No newline at end of file diff --git a/Netina.Api/Controllers/SearchController.cs b/Netina.Api/Controllers/SearchController.cs index 07d331c..5cd2bb0 100644 --- a/Netina.Api/Controllers/SearchController.cs +++ b/Netina.Api/Controllers/SearchController.cs @@ -26,7 +26,6 @@ public class SearchController : ICarterModule private async Task SearchThumbAsync([FromQuery] string name, [FromServices] ISearchService searchService, CancellationToken cancellationToken) => TypedResults.Ok(await searchService.ThumbSearchAsync(name, cancellationToken)); - private async Task SearchAsync([FromQuery] string name, [FromServices] ISearchService searchService, CancellationToken cancellationToken) => TypedResults.Ok(await searchService.SearchAsync(name, cancellationToken)); diff --git a/Netina.Api/Netina.Api.csproj b/Netina.Api/Netina.Api.csproj index da9792a..384a9d4 100644 --- a/Netina.Api/Netina.Api.csproj +++ b/Netina.Api/Netina.Api.csproj @@ -6,8 +6,8 @@ enable true Linux - 0.27.33.54 - 0.27.33.54 + 0.27.35.57 + 0.27.35.57 diff --git a/Netina.Api/Program.cs b/Netina.Api/Program.cs index c3d3365..a200ed6 100644 --- a/Netina.Api/Program.cs +++ b/Netina.Api/Program.cs @@ -8,7 +8,7 @@ string env = builder.Environment.IsDevelopment() == true ? "Development" : "Prod builder.Host.UseContentRoot(Directory.GetCurrentDirectory()); if (builder.Environment.IsDevelopment()) { - string projectName = "Vesmeh"; + string projectName = "Hamyan"; builder.Configuration.AddJsonFile($"AppSettings/appsettings.json").AddJsonFile($"AppSettings/appsettings.{env}{projectName}.json"); } diff --git a/Netina.Core/CoreServices/SearchServices/GetTorobProductsQueryHandler.cs b/Netina.Core/CoreServices/SearchServices/GetTorobProductsQueryHandler.cs index 6e084a1..1347092 100644 --- a/Netina.Core/CoreServices/SearchServices/GetTorobProductsQueryHandler.cs +++ b/Netina.Core/CoreServices/SearchServices/GetTorobProductsQueryHandler.cs @@ -16,6 +16,7 @@ public class GetTorobProductsQueryHandler : IRequestHandler> Handle(GetTorobProductsQuery request, CancellationToken cancellationToken) { + int page = request.Page == 0 ? 1 : request.Page; var productsSDto = await _repositoryWrapper.SetRepository() .TableNoTracking .OrderByDescending(p => p.ModifiedAt == DateTime.MinValue ? p.CreatedAt : p.ModifiedAt) @@ -32,7 +33,7 @@ public class GetTorobProductsQueryHandler : IRequestHandler