public async Task <Comment> DeleteComment(Comment comment) { db.Remove(comment); return(await Task.FromResult(comment)); }
public async Task <T> DeleteBlogPost <T>(T blogPost) where T : BlogPostBase { db.Remove(blogPost); return(await Task.FromResult(blogPost)); }