예제 #1
0
        public async Task EditPostAsync(CreatePostBlogViewModel post, int postId)
        {
            var oldPost = await _postsRepository.GetPost(postId);

            oldPost.Author  = post.Author;
            oldPost.Content = post.Content;
            //oldPost.CategorieId.Id =post.CategoriesId ;
            oldPost.Description = post.Description;
            oldPost.Title       = post.Title;
            _postsRepository.Edit(oldPost);
        }