Newsbot.Collector/Newsbot.Collector.Domain/Interfaces/IAuthorTable.cs
2023-07-29 10:02:43 -07:00

11 lines
317 B
C#

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);
}