* Fixed parameters names

This commit is contained in:
2025-08-24 10:36:36 +02:00
parent de9f6e53aa
commit f0b94bea74
3 changed files with 5 additions and 5 deletions

View File

@@ -10,9 +10,9 @@ namespace FaKrosnoApi.Controllers;
public class ItemCustPriceAllController(IItemCustPriceAllService service, IMapper mapper) : Controller
{
[HttpGet("by-parameters")]
public async Task<ActionResult<ItemCustPriceAllDto>> GetItemCustPriceAll(string itemCode, string customerDoInvoice)
public async Task<ActionResult<ItemCustPriceAllDto>> GetItemCustPriceAll([FromQuery] string itemNumber, [FromQuery] string customerNumber)
{
var result = await service.GetItemCustPriceAllAsync(itemCode, customerDoInvoice);
var result = await service.GetItemCustPriceAllAsync(itemNumber, customerNumber);
if (result == null)
{
return NotFound();