fix: error CS0234
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m27s

This commit is contained in:
Polianin Nikita 2024-02-17 09:09:18 +03:00
parent 6396d8a318
commit 2b4065bbdf
2 changed files with 3 additions and 6 deletions

View File

@ -19,7 +19,7 @@ namespace Mirea.Api.Endpoint.Controllers.V1
/// <returns>Basic information about campuses.</returns>
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<List<CampusBasicInfoResponse>>> GetBasicInfo()
public async Task<ActionResult<List<CampusBasicInfoResponse>>> Get()
{
var result = await mediator.Send(new GetCampusBasicInfoListQuery());

View File

@ -23,9 +23,7 @@ namespace Mirea.Api.Endpoint.Controllers.V1
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
[BadRequestResponse]
public async Task<ActionResult<List<FacultyResponse>>> Get(
[SwaggerDefault("0")][SwaggerSchema(Nullable = true)][FromQuery] int? page,
[SwaggerDefault("25")][SwaggerSchema(Nullable = true)][FromQuery] int? pageSize)
public async Task<ActionResult<List<FacultyResponse>>> 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<ActionResult<FacultyDetailsResponse>> GetDetails(
[SwaggerDefault("1")] int id)
public async Task<ActionResult<FacultyDetailsResponse>> GetDetails(int id)
{
var result = await mediator.Send(new GetFacultyInfoQuery()
{