69 lines
1.8 KiB
C#
69 lines
1.8 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Persistence.Models;
|
|
using Persistence.Repositories;
|
|
|
|
namespace Persistence.API.Controllers
|
|
{
|
|
[ApiController]
|
|
[Route("api/[controller]")]
|
|
public class ChangeLogController<TDto, TChangeLogDto> : ControllerBase, IChangeLogApi<TDto, TChangeLogDto>
|
|
where TDto : class, IChangeLogAbstract, new()
|
|
where TChangeLogDto : ChangeLogDto<TDto>
|
|
{
|
|
private IChangeLogRepository<TDto, TChangeLogDto> changeLogRepository;
|
|
|
|
public ChangeLogController(IChangeLogRepository<TDto, TChangeLogDto> changeLogRepository)
|
|
{
|
|
this.changeLogRepository = changeLogRepository;
|
|
}
|
|
|
|
[HttpGet]
|
|
public Task<ActionResult<IEnumerable<TDto>>> GetChangeLogCurrent(CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpGet("forDate")]
|
|
public Task<ActionResult<IEnumerable<TChangeLogDto>>> GetChangeLogForDate(DateTimeOffset historyMoment, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost]
|
|
public Task<ActionResult<int>> AddAsync(TDto dto, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost]
|
|
public Task<ActionResult<int>> AddRangeAsync(IEnumerable<TDto> dtos, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost]
|
|
public Task<ActionResult<int>> DeleteAsync(int id, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost]
|
|
public Task<ActionResult<int>> DeleteRangeAsync(IEnumerable<int> ids, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost("update")]
|
|
public Task<ActionResult<int>> UpdateAsync(TDto dto, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
[HttpPost("update")]
|
|
public Task<ActionResult<int>> UpdateRangeAsync(IEnumerable<TDto> dtos, CancellationToken token)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|