public SlideShow GetSlideShow(int id)
        {
            SlideShow slideshow = db.SlideShows.Find(id);

            return(slideshow);
        }
예제 #2
0
 public void CreateSlideShow(SlideShow slideshow)
 {
     db.SlideShows.Add(slideshow);
     db.SaveChanges();
 }
 public void UpdateSlideShow(SlideShow slideshow)
 {
     db.Entry(slideshow).State = EntityState.Modified;
     db.SaveChanges();
 }