Files
podnoms/server/Persistence/IEntryRepository.cs
Fergal Moran 1a92ad80eb Feature switch
2018-03-14 10:50:57 +00:00

14 lines
513 B
C#
Executable File

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