You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IAdService.cs 617B

1234567891011121314151617181920212223
  1. namespace Diligent.WebAPI.Business.Services.Interfaces
  2. {
  3. public interface IAdService
  4. {
  5. Task<List<AdResponseDto>> GetAllAsync();
  6. Task<List<AdResponseWithCountDto>> GetAllWithCountAsync();
  7. Task<AdResponseDto> GetByIdAsync(int id);
  8. Task<AdDetailsResponseDto> GetAdDetailsByIdAsync(int id);
  9. Task<List<AdResponseDto>> GetArchiveAds();
  10. Task<List<AdResponseDto>> GetFilteredAdsAsync(AdFilterDto filters);
  11. Task CreateAsync(AdCreateDto adCreateDto);
  12. Task UpdateAsync(int id, AdUpdateDto adUpdateDto);
  13. Task DeleteAsync(int id);
  14. }
  15. }