forked from ddrilling/AsbCloudServer
Правки по результатам ревью
This commit is contained in:
parent
58e02aca74
commit
9ab816cb46
@ -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)
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user