SHA256
Moved and renamed Db/Entity services for better organization.
This commit is contained in:
+4
-4
@@ -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)
|
||||
{
|
||||
+2
-2
@@ -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);
|
||||
+2
-2
@@ -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);
|
||||
+4
-4
@@ -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)
|
||||
{
|
||||
Reference in New Issue
Block a user