using System.Collections.Generic; using System.Threading.Tasks; using Website.Models; namespace Website.Data { public interface IBlogApi { Task GetPostByUrlAsync(string url); Task> GetLatestPostsAsync(int count = 0, int offset = 0); Task GetLatestPostAsync(); Task GetCountAsync(); Task GetPostByIdAsync(int id); Task SavePost(BlogPostSubmission post); Task> GetAllPostsAsync(); Task DeletePostAsync(int id); Task PublishPostAsync(int id); } }