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); }