From 97fc34481cb639301fb00183f1fea56dbbb07cba Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 6 Aug 2023 13:35:26 -0700 Subject: [PATCH] ISourcesRepository.cs updated to return total rows --- Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs b/Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs index 9c4c843..8276b1d 100644 --- a/Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs +++ b/Newsbot.Collector.Domain/Interfaces/ISourcesRepository.cs @@ -14,6 +14,7 @@ public interface ISourcesRepository public List List(int page, int count); public List ListBySource(string source,int page, int limit); public List ListByType(string type,int page, int limit = 25); + public Task TotalByTypeAsync(string type); public int Disable(Guid id); public int Enable(Guid id); public void Delete(Guid id);