Правки по результатам ревью

This commit is contained in:
Olga Nemt 2024-08-08 15:37:56 +05:00
parent 58e02aca74
commit 9ab816cb46
2 changed files with 5 additions and 5 deletions

View File

@ -32,12 +32,12 @@ namespace AsbCloudInfrastructure.Services
query = query.Where(c => c.IdCompanyType == request.ContactTypeId);
};
var dtos = query.Select(c => c.Adapt<ContactDto>());
var entities = await dtos.AsNoTracking()
var entities = await query.AsNoTracking()
.ToArrayAsync(token);
return entities;
var dtos = entities.Select(c => c.Adapt<ContactDto>());
return dtos;
}
public async Task<ContactDto?> GetAsync(int idWell, int id, CancellationToken token)

View File

@ -71,7 +71,7 @@ namespace AsbCloudWebApi.Controllers
/// <param name="idsWells">ключи скважин</param>
/// <param name="token"></param>
/// <returns></returns>
[HttpGet]
[HttpGet("/api/well/[controller]")]
[ProducesResponseType(typeof(IEnumerable<ContactDto>), (int)System.Net.HttpStatusCode.OK)]
public async Task<IActionResult> GetAllAsync([FromQuery] IEnumerable<int> idsWells, CancellationToken token)
{