1 2 3 4 5 6 7 8 9 10 11 12
using Api.Models; namespace Api.Interfaces { public interface IPostService { Task<PostSend> addPost(PostReceive post); Task<List<PostSend>> getAllPosts(); Task<PostSend> getPostById(string id); Task<PostSend> postToPostSend(Post post); } }