public IActionResult Delete(string id) { var blogPost = _blogPostService.Get(id); if (blogPost == null) { return(NotFound()); } _blogPostService.Remove(blogPost.Id); return(NoContent()); }