* Added managing EdiCustomerOrderTranslations

This commit is contained in:
2025-04-12 07:12:14 +02:00
parent 6977708099
commit 7660db1c0b
9 changed files with 185 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
using Microsoft.AspNetCore.Mvc;
using SytelineSaAppEfDataModel.Dtos;
using SytelineSaAppEfDataModel.Services;
namespace FaKrosnoApi.Controllers;
[ApiController]
[Route("api/[controller]")]
public class EdiCustomerOrdersTranslationsController(IEdiCustomerOrderTranslateService service) : Controller
{
[HttpGet]
public async Task<ActionResult<IEnumerable<EdiCustomerOrderTranslateDto>>> GetAll()
{
IEnumerable<EdiCustomerOrderTranslateDto?> ediCustomerOrdersTranlations = await service.GetAll();
return Ok(ediCustomerOrdersTranlations);
}
[HttpDelete]
public async Task<IActionResult> Delete([FromQuery] int id)
{
await service.Delete(id);
return NoContent();
}
}

View File

@@ -90,8 +90,6 @@ public class HangfireJobsController(
[HttpPost("delete")]
public async Task<IActionResult> DeleteTask([FromBody] TaskSchedulerDto taskSchedulerDto)
{
var taskSchedulerByTaskName = await service.GetTaskSchedulerByTaskName(taskSchedulerDto.Name);
Console.WriteLine(taskSchedulerByTaskName.RowPointer);
int result = await service.DeleteTaskScheduler(taskSchedulerDto.RowPointer);
if (result == 0)