SHA256
feat StayExport - Moved Entity Services.
This commit is contained in:
@@ -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>();
|
||||
|
||||
+2
-2
@@ -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);
|
||||
+4
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user