14 lines
486 B
C#
14 lines
486 B
C#
using Newsbot.Collector.Domain.Entities;
|
|
using Newsbot.Collector.Domain.Models;
|
|
|
|
namespace Newsbot.Collector.Domain.Interfaces;
|
|
|
|
public interface IArticlesRepository : ITableRepository
|
|
{
|
|
List<ArticlesEntity> List(int page, int count);
|
|
List<ArticlesModel> ListBySourceId(Guid id, int page = 0, int count = 25);
|
|
ArticlesModel GetById(Guid ID);
|
|
ArticlesModel GetByUrl(string url);
|
|
ArticlesEntity New(ArticlesEntity model);
|
|
void DeleteAllBySourceId(Guid sourceId);
|
|
} |