예제 #1
0
        public bool DeleteParagraph(ParagraphItem item)
        {
            ParagraphItem item1 = _context.ParagraphItems
                                  .Where(pi => pi.Id == item.Id)
                                  .FirstOrDefault();

            _context.Remove(item1);

            _context.SaveChanges();

            return(true);
        }