public async Task <string> UpdatePostBySender(Post newPost) { var result = await postSystem.UpdatePostBySender(newPost, account.Id); await UpdatePage.PostSystemUpdate(); return(result); }
public async Task <string> RemoveComment(string postId, string commentId) { var result = await postSystem.RemoveComment(postId, commentId, account.Id); await UpdatePage.PostSystemUpdate(); return(result); }
public async Task <string> AddComment(string postId, Comment comment) { var result = await postSystem.AddComment(postId, comment, account.Id); await UpdatePage.PostSystemUpdate(); return(result); }
public async Task <string> UpdatePostLike(string postId) { var result = await postSystem.UpdatePostLike(postId, account.Id); await UpdatePage.PostSystemUpdate(); return(result); }
public async Task <string> AddPost(Post post) { var result = await postSystem.AddPost(post, account.Id); await UpdatePage.PostSystemUpdate(); return(result); }
public async Task RemovePost(string postId) { await postSystem.RemovePost(postId, account.Id); await UpdatePage.PostSystemUpdate(); }