Пример #1
0
        public void DeletePicture(int id)
        {
            ProfilePicture picture = _db.ProfilePicture.Find(id);

            _db.ProfilePicture.Remove(picture);
            _db.SaveChanges();
        }
 public Schedule CreateSchedule(Schedule schedule)
 {
     _db.Schedule.Add(schedule);
     _db.SaveChanges();
     return(schedule);
 }
Пример #3
0
 public Announcement CreateAnnouncement(Announcement announcement)
 {
     _db.Announcement.Add(announcement);
     _db.SaveChanges();
     return(announcement);
 }
Пример #4
0
 public Course CreateCourse(Course course)
 {
     _db.Course.Add(course);
     _db.SaveChanges();
     return(course);
 }
 public Time CreateTime(Time time)
 {
     _db.Time.Add(time);
     _db.SaveChanges();
     return(time);
 }
Пример #6
0
 public DayOfTheWeek Create(DayOfTheWeek day)
 {
     _db.DayOfTheWeek.Add(day);
     _db.SaveChanges();
     return(day);
 }