Moved and renamed Db/Entity services for better organization.

This commit is contained in:
2026-08-30 20:20:03 +02:00
parent 4f22cd4541
commit b08aaf2d7b
13 changed files with 27 additions and 24 deletions
@@ -7,13 +7,13 @@ using Somnia.GuestLog.Models.DTOs;
using Somnia.GuestLog.Models.Entities;
using Somnia.GuestLog.Utils;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public class GuestDocumentService(
ILogger<GuestDocumentService> logger,
public class GuestDocumentEntityService(
ILogger<GuestDocumentEntityService> logger,
IDbContextFactory<GuestLogContext> contextFactory,
IValidator<GuestDocumentDTO> dtoValidator
) : IGuestDocumentService
) : IGuestDocumentEntityService
{
public async Task<Result> CreateDocumentAsync(GuestDocumentDTO dto)
{
@@ -1,8 +1,8 @@
using Somnia.GuestLog.Models.DTOs;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public interface IGuestDocumentService
public interface IGuestDocumentEntityService
{
public Task<Result> CreateDocumentAsync(GuestDocumentDTO dto);
public Task<Result> UpdateDocumentAsync(GuestDocumentDTO dto);
@@ -1,9 +1,9 @@
using Somnia.GuestLog.Models.DTOs;
using Somnia.GuestLog.Models.QueryConfigs;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public interface IStayEntryService
public interface IStayEntryEntityService
{
public Task<Result> CreateEntryAsync(StayEntryDTO dto);
public Task<Result> UpdateEntryAsync(StayEntryDTO updatedDto);
@@ -8,13 +8,13 @@ using Somnia.GuestLog.Models.Entities;
using Somnia.GuestLog.Models.QueryConfigs;
using Somnia.GuestLog.Utils;
namespace Somnia.GuestLog.Services;
namespace Somnia.GuestLog.Services.Entity;
public class StayEntryService(
ILogger<StayEntryService> logger,
public class StayEntryEntityService(
ILogger<StayEntryEntityService> logger,
IDbContextFactory<GuestLogContext> contextFactory,
IValidator<StayEntryDTO> dtoValidator
) : IStayEntryService
) : IStayEntryEntityService
{
public async Task<Result> CreateEntryAsync(StayEntryDTO dto)
{