feat(crud): Basis-CRUD-Controller für CRUD-Dienste mit einheitlichen DTOs für Erstellen, Lesen und Aktualisieren hinzugefügt
This commit is contained in:
parent
59619702ab
commit
2576bdcbc6
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
21
DigitalData.Core.API/BasicCRUDControllerBase.cs
Normal file
21
DigitalData.Core.API/BasicCRUDControllerBase.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using DigitalData.Core.Contracts.Application;
|
||||
using DigitalData.Core.Contracts.Infrastructure;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace DigitalData.Core.API
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class BasicCRUDControllerBase<TOriginalController, TCRUDService, TCRUDRepository, TDto, TEntity, TId> : CRUDControllerBase<TOriginalController, TCRUDService, TCRUDRepository, TDto, TDto, TDto, TEntity, TId>
|
||||
where TOriginalController : CRUDControllerBase<TOriginalController, TCRUDService, TCRUDRepository, TDto, TDto, TDto, TEntity, TId>
|
||||
where TCRUDService : ICRUDService<TCRUDRepository, TDto, TDto, TDto, TEntity, TId>
|
||||
where TCRUDRepository : ICRUDRepository<TEntity, TId>
|
||||
where TDto : class
|
||||
where TEntity : class
|
||||
{
|
||||
public BasicCRUDControllerBase(ILogger<TOriginalController> logger, TCRUDService service) : base(logger, service)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
1394769772e7923a05dbaea725bb550c33970e60
|
||||
2221c1ecef1ac9eb27bf4ae97a33977f72178fae
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user