常用方法
常用方法
常用方法
常用方法
public void DeleteBlogPost(string userId, string _id) { var post = _blogPostRepository.GetByUserIdAndId(userId, _id); if (post == null) { throw new NotFoundException("Post não encontrado"); } _blogPostRepository.Delete(_id); }