Sync products with old e5 CRM

This commit is contained in:
Michał Zieliński
2025-06-23 21:52:09 +02:00
parent 8cb3b50fe7
commit 63b7ed51d1
17 changed files with 339 additions and 80 deletions

View File

@@ -5,8 +5,8 @@ using Microsoft.EntityFrameworkCore;
namespace Bimix.API.Controllers;
[Route("api/[controller]")]
[ApiController]
[Route("api/[controller]")]
public class ProductsController(BimixDbContext context) : ControllerBase
{
private readonly BimixDbContext _context = context;

View File

@@ -0,0 +1,16 @@
using Bimix.Infrastructure.Sync;
using Microsoft.AspNetCore.Mvc;
namespace Bimix.API.Controllers;
[ApiController]
[Route("api/[controller]")]
public class SyncController(ProductSyncService productSyncService) : ControllerBase
{
[HttpPost("run-product-sync")]
public async Task<IActionResult> RunProductSync()
{
await productSyncService.RunAsync();
return Ok();
}
}