Поправлено возвращаемое значение из методов контроллера

This commit is contained in:
Степанов Дмитрий 2023-12-20 09:17:30 +05:00
parent d7c80c0d5c
commit 653722b1dd

View File

@ -152,10 +152,9 @@ public abstract class ProcessMapBaseController<T> : ControllerBase
/// <param name="cancellationToken"></param> /// <param name="cancellationToken"></param>
/// <returns></returns> /// <returns></returns>
[HttpGet] [HttpGet]
[ProducesResponseType(typeof(ValidationResultDto<>), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status204NoContent)] [ProducesResponseType(StatusCodes.Status204NoContent)]
[ProducesResponseType(StatusCodes.Status403Forbidden)] [ProducesResponseType(StatusCodes.Status403Forbidden)]
public async Task<ActionResult<ValidationResultDto<T>>> GetAsync(int idWell, CancellationToken cancellationToken) public async Task<ActionResult<IEnumerable<ValidationResultDto<T>>>> GetAsync(int idWell, CancellationToken cancellationToken)
{ {
var processMaps = await service.GetAsync(idWell, cancellationToken); var processMaps = await service.GetAsync(idWell, cancellationToken);