public ActionResult SaveSliderEvents(string id)
        {
            AdriaTicketData.ExecuteCommand("DELETE FROM BK_MainSliderEvents");
            string[] array = id.Split(new string[] { "$%$" }, StringSplitOptions.RemoveEmptyEntries);
            int counter =1;
            foreach (string item in array)
            {
                BK_MainSliderEvent i = new BK_MainSliderEvent();
                i.EventId = Convert.ToInt16(item);
                i.Id = counter;
                counter++;
                AdriaTicketData.BK_MainSliderEvents.InsertOnSubmit(i);
            }

            AdriaTicketData.SubmitChanges();
            return Json("inserted", JsonRequestBehavior.AllowGet);
        }
 partial void DeleteBK_MainSliderEvent(BK_MainSliderEvent instance);
 partial void InsertBK_MainSliderEvent(BK_MainSliderEvent instance);
 partial void UpdateBK_MainSliderEvent(BK_MainSliderEvent instance);
		private void detach_BK_MainSliderEvents(BK_MainSliderEvent entity)
		{
			this.SendPropertyChanging();
			entity.LK_Event = null;
		}