Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/IArticlesRepository.cs

12 lines
395 B
C#
Raw Normal View History

using Newsbot.Collector.Domain.Models;
namespace Newsbot.Collector.Domain.Interfaces;
public interface IArticlesRepository : ITableRepository
{
List<ArticlesModel>List(int page, int count);
List<ArticlesModel>ListBySourceId(Guid id, int page = 0, int count = 25);
ArticlesModel GetById(Guid ID);
ArticlesModel GetByUrl(string url);
ArticlesModel New(ArticlesModel model);
}