Пример #1
0
        public int Delete(int ID)
        {
            AnnouncementsNote note = DB.AnnouncementsNotes.FirstOrDefault(x => x.noteID == ID);

            note.isDeleted = true;
            return(DB.SaveChanges());
        }
Пример #2
0
 public AnnouncementsNote Add(AnnouncementsNote note)
 {
     DB.AnnouncementsNotes.Add(note);
     DB.SaveChanges();
     return(note);
 }