예제 #1
0
 public int Save(Slider slider)
 {
     SliderRepository sliderRepository = new SliderRepository();
     if (slider.ID > 0)
         return sliderRepository.Update(slider);
     else
         return sliderRepository.Insert(slider);
 }
예제 #2
0
 public bool Delete(Slider slider)
 {
     return new SliderRepository().Delete(slider);
 }