Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            logic = new SliderSetting_Logic();
            if (Request["Pics"] != null)
            {
                var        s    = Request["Pics"].Split(',');
                List <int> pics = new List <int>();
                for (int i = 0; i < s.Length; i++)
                {
                    pics.Add(Convert.ToInt32(s[i]));
                }

                Response.Write(logic.AddPic_Sliders(pics));
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            logic = new SliderSetting_Logic();
            if (Request["Pics"] != null)
            {
                var        s    = JsonConvert.DeserializeObject <List <UploaderModel> >(Request["Pics"]);
                List <int> pics = new List <int>();
                for (int i = 0; i < s.Count; i++)
                {
                    pics.Add(Convert.ToInt32(s[i].idOfImg));
                }

                Response.Write(logic.AddPic_Sliders(pics));
            }
        }