feat StayExport - Moved Entity Services.

This commit is contained in:
2026-09-01 18:14:27 +02:00
parent c24faedee5
commit b318f2415c
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ builder.Services.AddSingleton<IValidator<StayEntryDTO>, StayEntryDTOValidator>()
// Add Entity Services
builder.Services.AddSingleton<IGuestDocumentEntityService, GuestDocumentEntityService>();
builder.Services.AddSingleton<IStayEntryEntityService, StayEntryEntityService>();
builder.Services.AddSingleton<IStayExportFileService, StayExportFileService>();
builder.Services.AddSingleton<IStayExportFileEntityService, StayExportFileEntityService>();
// Add Services
builder.Services.AddSingleton<IDataListService, StaticDataListService>();
@@ -1,8 +1,8 @@
using Somnia.GuestLog.Models.DTOs;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public interface IStayExportFileService
public interface IStayExportFileEntityService
{
public Task<Result> CreateStayExportAsync(StayExportFileDTO dto);
public Task<Result> UpdateStayExportAsync(StayExportFileDTO dto);
@@ -5,12 +5,12 @@ using Somnia.GuestLog.Models;
using Somnia.GuestLog.Models.DTOs;
using Somnia.GuestLog.Models.Entities;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public class StayExportFileService(
ILogger<StayExportFileService> logger,
public class StayExportFileEntityService(
ILogger<StayExportFileEntityService> logger,
IDbContextFactory<GuestLogContext> contextFactory
) : IStayExportFileService
) : IStayExportFileEntityService
{
public async Task<Result> CreateStayExportAsync(StayExportFileDTO dto)
{
@@ -13,7 +13,7 @@ namespace Somnia.GuestLog.Services.StayExport;
public class JsonStayExportService(
ILogger<JsonStayExportService> logger,
IStayExportFileService stayExportEntityService,
IStayExportFileEntityService stayExportEntityService,
IStayEntryEntityService stayEntityService,
IOptions<StayExportConfig> exportConfig
) : IStayExportService