Example #1
0
        public IActionResult DeletePost(int PostId)
        {
            _postServices.DeletePosts(PostId);

            var model = _postServices.GetPostList();

            return(PartialView("ListPostPartial", model));
        }
Example #2
0
 public IEnumerable <PostDto> GetPosts()
 {
     return(_postServices.GetPostList());
 }