fix: error CS0234
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m27s
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m27s
This commit is contained in:
parent
6396d8a318
commit
2b4065bbdf
@ -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());
|
||||
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user