Files
podnoms/server/Persistence/IEntryRepository.cs
Fergal Moran 8d69c72b83 Merge Repos
2017-10-30 20:42:23 +00:00

16 lines
517 B
C#

using System.Collections.Generic;
using System.Threading.Tasks;
using PodNoms.Api.Models;
namespace PodNoms.Api.Persistence
{
public interface IEntryRepository
{
Task<PodcastEntry> GetAsync(int id);
Task<PodcastEntry> GetByUidAsync(string uid);
Task<IEnumerable<PodcastEntry>> GetAllAsync(int podcastId);
Task<IEnumerable<PodcastEntry>> GetAllAsync(string podcastSlug);
Task<PodcastEntry> AddOrUpdateAsync(PodcastEntry entry);
Task DeleteAsync(int id);
}
}