Consolidated using directives and removed unnecessary ones. Added attributes to the namespace declaration for API routing and deprecation notice. Simplified the class definition by removing the IUnique<TId> constraint and cleaned up the constructor by eliminating empty braces.
18 lines
585 B
C#
18 lines
585 B
C#
using DigitalData.Core.API;
|
|
using DigitalData.Core.Abstraction.Application;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Web.Controllers.Test;
|
|
|
|
[ApiController]
|
|
[Route("api/test/[controller]")]
|
|
[Obsolete("Use MediatR")]
|
|
public class TestControllerBase<TCRUDService, TDto, TEntity, TId> : BasicCRUDControllerBase<TCRUDService, TDto, TEntity, TId>
|
|
where TCRUDService : ICRUDService<TDto, TDto, TEntity, TId>
|
|
where TDto : class
|
|
where TEntity : class
|
|
{
|
|
public TestControllerBase(ILogger logger, TCRUDService service) : base(logger, service)
|
|
{
|
|
}
|
|
} |