* Extended of Dtos

* Added new Services and Controllers
This commit is contained in:
2025-09-03 15:04:22 +02:00
parent 47f37d016d
commit 0199467f72
15 changed files with 172 additions and 23 deletions

View File

@@ -0,0 +1,15 @@
using AutoMapper;
using SytelineSaAppEfDataModel.Dtos;
using SytelineSaAppEfDataModel.Entities;
namespace SytelineSaAppEfDataModel.Services;
public class EdiLogService(SytelineSaAppDbContext context, IMapper mapper) : IEdiLogService
{
public async Task<bool> AddEdiLog(EdiLogDto ediLog)
{
var entity = mapper.Map<EdiLog>(ediLog);
await context.EdiLogs.AddAsync(entity);
return await context.SaveChangesAsync() > 0;
}
}