Example #1
0
 public DataTable GetSliders(bool addSelect)
 {
     SliderDL sliderDL = new SliderDL();
     DataTable sliders = sliderDL.GetSliders();
     if(addSelect)
     {
         DataRow row = sliders.NewRow();
         row[0] = 0;
         row[1] = "Odaberi slider";
         row[2] = true;
         sliders.Rows.InsertAt(row, 0);
     }
     return sliders;
 }
Example #2
0
 public DataTable GetSliders()
 {
     SliderDL sliderDL = new SliderDL();
     DataTable sliders = sliderDL.GetSliders();
     //if(addSelect)
     //{
         //DataRow row = sliders.NewRow();
         //row[0] = 0;
         //row[1] = "Odaberi slider";
         //row[2] = true;
         //sliders.Rows.InsertAt(row, 0);
     //}
     return sliders;
 }
Example #3
0
 public int SaveSliderItem(SliderItem item)
 {
     SliderDL sliderDL = new SliderDL();
     return sliderDL.SaveSliderItem(item);
 }
Example #4
0
 public int SaveSlider(Slider slider)
 {
     SliderDL sliderDL = new SliderDL();
     return (slider.SliderID > 0) ? sliderDL.UpdateSlider(slider) : sliderDL.SaveSlider(slider);
 }
Example #5
0
 public void ReorderSliderItems(int sliderItemID, int index, int sliderID)
 {
     SliderDL sliderDL = new SliderDL();
     sliderDL.ReorderSliderItem(sliderItemID, index, sliderID);
 }
Example #6
0
 public List<SliderItem> GetSliderItems(int sliderID)
 {
     SliderDL sliderDL = new SliderDL();
     return sliderDL.getSliderItems(sliderID);
 }
Example #7
0
 public Slider GetSlider(int sliderID)
 {
     SliderDL sliderDL = new SliderDL();
     return sliderDL.GetSlider(sliderID);
 }
Example #8
0
 public int DeleteSliderItem(int sliderItemID)
 {
     SliderDL sliderDL = new SliderDL();
     return sliderDL.DeleteSliderItem(sliderItemID);
 }
Example #9
0
 public DataTable GetSliders()
 {
     SliderDL sliderDL = new SliderDL();
     return sliderDL.GetSliders();
 }