Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs

11 lines
317 B
C#
Raw Normal View History

using Newsbot.Collector.Domain.Entities;
namespace Newsbot.Collector.Domain.Interfaces;
public interface IAuthorTable
{
AuthorEntity New(AuthorEntity entity);
List<AuthorEntity> ListBySourceId(Guid sourceId);
int TotalPosts(Guid id);
AuthorEntity? GetBySourceIdAndName(Guid sourceId, string name);
}