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; }
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; }
public int SaveSliderItem(SliderItem item) { SliderDL sliderDL = new SliderDL(); return sliderDL.SaveSliderItem(item); }
public int SaveSlider(Slider slider) { SliderDL sliderDL = new SliderDL(); return (slider.SliderID > 0) ? sliderDL.UpdateSlider(slider) : sliderDL.SaveSlider(slider); }
public void ReorderSliderItems(int sliderItemID, int index, int sliderID) { SliderDL sliderDL = new SliderDL(); sliderDL.ReorderSliderItem(sliderItemID, index, sliderID); }
public List<SliderItem> GetSliderItems(int sliderID) { SliderDL sliderDL = new SliderDL(); return sliderDL.getSliderItems(sliderID); }
public Slider GetSlider(int sliderID) { SliderDL sliderDL = new SliderDL(); return sliderDL.GetSlider(sliderID); }
public int DeleteSliderItem(int sliderItemID) { SliderDL sliderDL = new SliderDL(); return sliderDL.DeleteSliderItem(sliderItemID); }
public DataTable GetSliders() { SliderDL sliderDL = new SliderDL(); return sliderDL.GetSliders(); }