public List <HomeSlider> GetHomeSliderDetail()
        {
            List <HomeSlider> lstHomeSlider = new EFHomeSlider().getAllHomeSlider();

            foreach (var item in lstHomeSlider)
            {
                item.ImageURL = AppConfigSetting.homeSliderUrl.ToString() + item.HomeSliderId.ToString() + item.ImageURL;
            }
            return(lstHomeSlider);
        }
        protected void btnSave_Click(object sender, EventArgs e)
        {
            HomeSlider homeSlider = formToObject();
            bool       result     = new EFHomeSlider().saveHomeSlider(ref homeSlider, ref ErrorMessage, SessionHelper.getUserSession().userid);

            if (result)
            {
                saveImage(homeSlider.HomeSliderId);

                lblMessage.Text = "";
                FormReset();
                FormLoad();
                MisOp.ShowMessage(this, "The Record has been saved", "Home Slider ", true);
                //return;
            }
            else
            {
                lblMessage.Text = ErrorMessage;
            }
        }
Ejemplo n.º 3
0
        public static List <HomeSlider> GetslideImages()
        {
            EFHomeSlider efHomeSlider = new EFHomeSlider();

            return(efHomeSlider.getAllHomeSlider());
        }