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