forked from ddrilling/AsbCloudServer
Метод Post в MergeAsync в FaqController
This commit is contained in:
parent
f04928e7d6
commit
9339252102
@ -82,13 +82,13 @@ namespace AsbCloudWebApi.Controllers
|
|||||||
/// <param name="token"></param>
|
/// <param name="token"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
/// <exception cref="ArgumentInvalidException"></exception>
|
/// <exception cref="ArgumentInvalidException"></exception>
|
||||||
[HttpGet("merge")]
|
[HttpPost("merge")]
|
||||||
[Permission]
|
[Permission]
|
||||||
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
[ProducesResponseType(typeof(int), (int)System.Net.HttpStatusCode.OK)]
|
||||||
public async Task<IActionResult> MergeAsync(
|
public async Task<IActionResult> MergeAsync(
|
||||||
[FromQuery] int sourceId1,
|
int sourceId1,
|
||||||
[FromQuery] int sourceId2,
|
int sourceId2,
|
||||||
[FromQuery] bool mergeQuestions,
|
bool mergeQuestions,
|
||||||
CancellationToken token)
|
CancellationToken token)
|
||||||
{
|
{
|
||||||
var result = await faqRepository.MergeAsync(sourceId1, sourceId2, mergeQuestions, token)
|
var result = await faqRepository.MergeAsync(sourceId1, sourceId2, mergeQuestions, token)
|
||||||
|
Loading…
Reference in New Issue
Block a user