- Aktualisiert ReadControllerBase, um zu verlangen, dass TEntity IUnique<TId> implementiert - BasicCRUDControllerBase geändert, um sicherzustellen, dass sowohl TDto als auch TEntity IUnique<TId> implementieren
18 lines
639 B
C#
18 lines
639 B
C#
using DigitalData.Core.Abstractions;
|
|
using DigitalData.Core.Abstractions.Application;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DigitalData.Core.API
|
|
{
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class BasicCRUDControllerBase<TCRUDService, TDto, TEntity, TId> : CRUDControllerBase<TCRUDService, TDto, TDto, TDto, TEntity, TId>
|
|
where TCRUDService : ICRUDService<TDto, TDto, TDto, TEntity, TId>
|
|
where TDto : class, IUnique<TId>
|
|
where TEntity : class, IUnique<TId>
|
|
{
|
|
public BasicCRUDControllerBase(ILogger logger, TCRUDService service) : base(logger, service)
|
|
{
|
|
}
|
|
}
|
|
} |