forked from ddrilling/AsbCloudServer
Метод GetAsync переименова в GetAllAsync
This commit is contained in:
parent
49611d45f3
commit
9806df01ae
@ -19,7 +19,7 @@ namespace AsbCloudApp.Repositories
|
|||||||
/// <param name="request"></param>
|
/// <param name="request"></param>
|
||||||
/// <param name="token"></param>
|
/// <param name="token"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
Task<IEnumerable<FaqDto>> GetAsync(FaqRequest request, CancellationToken token);
|
Task<IEnumerable<FaqDto>> GetAllAsync(FaqRequest request, CancellationToken token);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Добавить вопрос
|
/// Добавить вопрос
|
||||||
|
@ -30,7 +30,7 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
this.wellService = wellService;
|
this.wellService = wellService;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<IEnumerable<FaqDto>> GetAsync(FaqRequest request, CancellationToken token)
|
public async Task<IEnumerable<FaqDto>> GetAllAsync(FaqRequest request, CancellationToken token)
|
||||||
{
|
{
|
||||||
var query = db.FAQs
|
var query = db.FAQs
|
||||||
.Where(o => o.IdWell == request.IdWell);
|
.Where(o => o.IdWell == request.IdWell);
|
||||||
|
@ -42,7 +42,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
[HttpGet]
|
[HttpGet]
|
||||||
[Permission]
|
[Permission]
|
||||||
[ProducesResponseType(typeof(IEnumerable<FaqDto>), (int)System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(IEnumerable<FaqDto>), (int)System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> GetAsync(
|
public async Task<IActionResult> GetAllAsync(
|
||||||
[FromRoute] int idWell,
|
[FromRoute] int idWell,
|
||||||
[FromQuery] FaqRequestBase request,
|
[FromQuery] FaqRequestBase request,
|
||||||
CancellationToken token)
|
CancellationToken token)
|
||||||
@ -52,7 +52,7 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
|
|
||||||
var requestToRepository = new FaqRequest(request, idWell);
|
var requestToRepository = new FaqRequest(request, idWell);
|
||||||
|
|
||||||
var result = await faqRepository.GetAsync(
|
var result = await faqRepository.GetAllAsync(
|
||||||
requestToRepository,
|
requestToRepository,
|
||||||
token)
|
token)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user