| 123456789101112131415161718192021222324252627 |
-
- namespace Diligent.WebAPI.Business.Services.Interfaces
- {
- public interface IAdService
- {
- Task<List<AdResponseDto>> GetAllAsync();
- Task<List<AdResponseWithCountDto>> GetAllWithCountAsync();
-
- Task<AdResponseDto> GetByIdAsync(int id);
-
- Task<AdDetailsResponseDto> GetAdDetailsByIdAsync(int id);
-
- Task<List<AdResponseDto>> GetArchiveAds();
-
- Task<List<AdResponseDto>> GetFilteredAdsAsync(AdFilterDto filters);
-
- Task CreateAsync(AdCreateDto adCreateDto);
- Task<Ad> ImportAsync(AdCreateDto adCreateDto);
-
- Task UpdateAsync(int id, AdUpdateDto adUpdateDto);
-
- Task ArchiveAdAsync(int id);
-
- Task DeleteAsync(int id);
- Task<Ad> GetByIdEntityAsync(int id);
- }
- }
|