From 2b4065bbdf7d60e80567067af87d6d11817c5526 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 17 Feb 2024 09:09:18 +0300 Subject: [PATCH] fix: error CS0234 --- Endpoint/Controllers/V1/CampusController.cs | 2 +- Endpoint/Controllers/V1/FacultyController.cs | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Endpoint/Controllers/V1/CampusController.cs b/Endpoint/Controllers/V1/CampusController.cs index 4ee93c8..ae83834 100644 --- a/Endpoint/Controllers/V1/CampusController.cs +++ b/Endpoint/Controllers/V1/CampusController.cs @@ -19,7 +19,7 @@ namespace Mirea.Api.Endpoint.Controllers.V1 /// Basic information about campuses. [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] - public async Task>> GetBasicInfo() + public async Task>> Get() { var result = await mediator.Send(new GetCampusBasicInfoListQuery()); diff --git a/Endpoint/Controllers/V1/FacultyController.cs b/Endpoint/Controllers/V1/FacultyController.cs index fe0190d..745e673 100644 --- a/Endpoint/Controllers/V1/FacultyController.cs +++ b/Endpoint/Controllers/V1/FacultyController.cs @@ -23,9 +23,7 @@ namespace Mirea.Api.Endpoint.Controllers.V1 [HttpGet] [ProducesResponseType(StatusCodes.Status200OK)] [BadRequestResponse] - public async Task>> Get( - [SwaggerDefault("0")][SwaggerSchema(Nullable = true)][FromQuery] int? page, - [SwaggerDefault("25")][SwaggerSchema(Nullable = true)][FromQuery] int? pageSize) + public async Task>> Get([FromQuery] int? page, [FromQuery] int? pageSize) { var result = await mediator.Send(new GetFacultyListQuery() { @@ -52,8 +50,7 @@ namespace Mirea.Api.Endpoint.Controllers.V1 [ProducesResponseType(StatusCodes.Status200OK)] [BadRequestResponse] [NotFoundResponse] - public async Task> GetDetails( - [SwaggerDefault("1")] int id) + public async Task> GetDetails(int id) { var result = await mediator.Send(new GetFacultyInfoQuery() {