Beispiel #1
0
 public int Remove(Post post)
 {
     using (var context = new Context.ApplicationContext())
     {
         context.Remove(post);
         return(context.SaveChanges());
     }
 }
Beispiel #2
0
 public int Remove(Category category)
 {
     using (var context = new Context.ApplicationContext())
     {
         context.Remove(category);
         return(context.SaveChanges());
     }
 }
Beispiel #3
0
 public int Remove(Comment comment)
 {
     using (var context = new Context.ApplicationContext())
     {
         context.Remove(comment);
         return(context.SaveChanges());
     }
 }
Beispiel #4
0
 public int Remove(Topic topic)
 {
     using (var context = new Context.ApplicationContext())
     {
         context.Remove(topic);
         return(context.SaveChanges());
     }
 }