ISlideRepository.cs 755 B

12345678910111213141516171819202122232425262728293031
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity;
  4. using Datory;
  5. using GxPress.Request.Slide;
  6. using GxPress.Common.Page;
  7. namespace GxPress.Repository.Interface
  8. {
  9. public interface ISlideRepository : IRepository
  10. {
  11. Task<bool> ExistsAsync(int id);
  12. Task<PagedList<Slide>> GetListAsync(SlideSearchRequest request);
  13. Task<Slide> GetAsync(int id);
  14. /// <summary>
  15. /// ����
  16. /// </summary>
  17. /// <param name="request"></param>
  18. /// <returns></returns>
  19. Task<Slide> AddAsync(Slide request);
  20. Task<Slide> EditAsync(Slide request);
  21. Task<bool> DeleteAsync(int id);
  22. Task<IEnumerable<Slide>> GetListAsync(int typeId);
  23. }
  24. }