public int Remove(Post post) { using (var context = new Context.ApplicationContext()) { context.Remove(post); return(context.SaveChanges()); } }
public int Remove(Category category) { using (var context = new Context.ApplicationContext()) { context.Remove(category); return(context.SaveChanges()); } }
public int Remove(Comment comment) { using (var context = new Context.ApplicationContext()) { context.Remove(comment); return(context.SaveChanges()); } }
public int Remove(Topic topic) { using (var context = new Context.ApplicationContext()) { context.Remove(topic); return(context.SaveChanges()); } }