* Added ItemCustPriceAll entity

This commit is contained in:
2025-08-22 07:13:47 +02:00
parent 8c646d4bc7
commit 764ba68f56
8 changed files with 293 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
using AutoMapper;
using Microsoft.AspNetCore.Mvc;
using SytelineSaAppEfDataModel.Dtos;
using SytelineSaAppEfDataModel.Services;
namespace FaKrosnoApi.Controllers;
[ApiController]
[Route("api/[controller]")]
public class ItemCustPriceAllController(IItemCustPriceAllService service, IMapper mapper) : Controller
{
[HttpGet("by-parameters")]
public async Task<ActionResult<ItemCustPriceAllDto>> GetItemCustPriceAll(string itemCode, string customerDoInvoice)
{
var result = await service.GetItemCustPriceAllAsync(itemCode, customerDoInvoice);
if (result == null)
{
return NotFound();
}
return Ok(mapper.Map<ItemCustPriceAllDto>(result));
}
}