feat: ReadService hinzugefügt und in ReadController integriert

- Generischen ReadService erstellt, um Lese- (ReadById, ReadAll) und Löschoperationen zu verwalten.
- ReadService in den ReadController integriert.
This commit is contained in:
Developer 02
2024-09-16 09:08:27 +02:00
parent 2c739fbf02
commit 993d407a48
8 changed files with 97 additions and 91 deletions

View File

@@ -1,3 +1,4 @@
using DigitalData.Core.Abstractions;
using DigitalData.Core.Abstractions.Application;
using DigitalData.Core.DTO;
using Microsoft.AspNetCore.Mvc;
@@ -19,8 +20,8 @@ namespace DigitalData.Core.API
where TCRUDService : ICRUDService<TCreateDto, TReadDto, TUpdateDto, TEntity, TId>
where TCreateDto : class
where TReadDto : class
where TUpdateDto : class
where TEntity : class
where TUpdateDto : class, IUnique<TId>
where TEntity : class, IUnique<TId>
{
protected readonly ILogger _logger;
protected readonly TCRUDService _service;