Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public async Task <ActionResult <BlogPostDTO> > CreateBlogPost(BlogPostDTO blogPostDTO) { int newBlogPostId = await _blogPostRepository.CreateBlogPost(blogPostDTO); var newBlogPost = await _blogPostRepository.GetBlogPostByIdAsync(newBlogPostId); return(_mapper.Map <BlogPostDTO>(newBlogPost)); }