* Fixed parameters names
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user