add supplier repo and suppliercreationdto

This commit is contained in:
2023-06-09 13:04:59 +02:00
parent 7b1aaacfb5
commit f5c030df01
14 changed files with 207 additions and 35 deletions

View File

@@ -28,9 +28,9 @@ public class SupplierController : ControllerBase
}
[HttpPost]
public async Task<CreatedAtActionResult> CreateSupplier([FromBody] SupplierForCreationDto supplierForCreation)
public async Task<CreatedAtActionResult> CreateSupplier([FromBody] SupplierForCreationDto supplierForCreation, CancellationToken cancellationToken)
{
var supplierDto = await _supplierService.CreateAsync(supplierForCreation);
var supplierDto = await _supplierService.CreateAsync(supplierForCreation, cancellationToken);
return CreatedAtAction(nameof(CreateSupplier), new { id = supplierDto.Id }, supplierDto);
}