示例#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);
 }