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>> GetAll() { IEnumerable ediCustomerOrdersTranlations = await service.GetAll(); return Ok(ediCustomerOrdersTranlations); } [HttpDelete] public async Task Delete([FromQuery] int id) { await service.Delete(id); return NoContent(); } }