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