CS2-58: Added [FromQuery] to 'companies' param

This commit is contained in:
KharchenkoVV 2021-08-20 11:46:14 +05:00
parent b39f07821d
commit 0e586edcc5

View File

@ -91,8 +91,8 @@ namespace AsbCloudWebApi.Controllers
[ProducesResponseType(typeof(PaginationContainer<FileInfoDto>), (int)System.Net.HttpStatusCode.OK)]
public async Task<IActionResult> GetFilesInfoAsync([FromRoute] int idWell,
int skip = 0, int take = 32, int idCategory = default,
IEnumerable<int> companies = default, DateTime begin = default,
DateTime end = default, CancellationToken token = default)
DateTime begin = default, DateTime end = default,
CancellationToken token = default, [FromQuery] IEnumerable<int> companies = default)
{
int? idCompany = User.GetCompanyId();