public IActionResult DeletePost(int PostId) { _postServices.DeletePosts(PostId); var model = _postServices.GetPostList(); return(PartialView("ListPostPartial", model)); }
public IEnumerable <PostDto> GetPosts() { return(_postServices.GetPostList()); }