Код: Выделить всё
{
"selectedItems": [
4016,
3937
],
"selectedStatuses": [],
"search": "foo"
}
Код: Выделить всё
public class FilterModel
{
public List SelectedItems { get; set; }
public List SelectedStatuses { get; set; }
public string Search { get; set; }
}
Код: Выделить всё
[HttpGet("{id}/filter/{typeId}")]
public async Task GetFilteredData([FromRoute]int id,
[FromRoute]int typeId,
[FromQuery]FilterModel filters = null)
Подробнее здесь: https://stackoverflow.com/questions/555 ... -fromquery