* Introduced Marelli packing list

This commit is contained in:
2025-09-09 07:00:05 +02:00
parent 89792d3d28
commit 50a25ff996
12 changed files with 477 additions and 30 deletions

View File

@@ -9,14 +9,14 @@ namespace FaKrosnoApi.Controllers;
public class WzRowMareliController(IWzRowMareliService service, IMaterialTransactionService materialTransactionService) : Controller
{
[HttpGet]
public async Task<ActionResult<IEnumerable<WzRowMareliDto>>> GetAll()
public async Task<ActionResult<IEnumerable<WzRowMarelliDto>>> GetAll()
{
IEnumerable<WzRowMareliDto> wzRows = await service.GetAll();
IEnumerable<WzRowMarelliDto> wzRows = await service.GetAll();
return Ok(wzRows);
}
[HttpPost]
public async Task<ActionResult> CreateRows([FromBody] IEnumerable<WzRowMareliDto> rows)
public async Task<ActionResult> CreateRows([FromBody] IEnumerable<WzRowMarelliDto> rows)
{
if (rows == null || !rows.Any())
{
@@ -28,9 +28,9 @@ public class WzRowMareliController(IWzRowMareliService service, IMaterialTransac
}
[HttpGet("by-wz-header-id")]
public async Task<ActionResult<IEnumerable<WzRowMareliDto>>> GetByWzHeaderId(Guid wzHeaderId)
public async Task<ActionResult<IEnumerable<WzRowMarelliDto>>> GetByWzHeaderId(Guid wzHeaderId)
{
IEnumerable<WzRowMareliDto> wzRows = await service.GetByWzHeaderId(wzHeaderId);
IEnumerable<WzRowMarelliDto> wzRows = await service.GetByWzHeaderId(wzHeaderId);
return Ok(wzRows);
}
@@ -49,7 +49,7 @@ public class WzRowMareliController(IWzRowMareliService service, IMaterialTransac
}
[HttpPut]
public async Task<ActionResult> UpdateRows([FromBody] IEnumerable<WzRowMareliDto> rows)
public async Task<ActionResult> UpdateRows([FromBody] IEnumerable<WzRowMarelliDto> rows)
{
if (rows == null || !rows.Any())
{