Пример #1
0
        //Delete
        public static void DeleteSubject(Subjects1 subject)
        {
            Subjects newSubject = SubjectsConvertor.ConvertToDL(subject);

            ItemsSubjectBL.DeleteItemsSubjectBySubjectId(newSubject.SubjectId);

            SubjectsDL.DeleteSubject(newSubject);
        }
Пример #2
0
        //Delete
        public static void DeleteItem(Items1 item)
        {
            Items newItem = ItemsConvertor.ConvertToDL(item);

            ItemsSubjectBL.DeleteItemsSubjectByItemId(newItem.ItemId);
            //TODO
            //WordsLocationsBL.DeleteWordsLocationsByItemId(newItem.ItemId);
            BookPagesBL.DeleteBookByItemId(newItem.ItemId);

            ItemsDL.DeleteItem(newItem);
        }