Exemplo n.º 1
0
        public ActionResult SaveImage(string image, int id)
        {
            string[] array = image.Split(new string[] { "$%$" },StringSplitOptions.RemoveEmptyEntries);
            foreach(string item in array )
            {
                BK_Image i = new BK_Image();
                i.ImageName = item;
                i.ImageAlt = null;
                i.GalleryId = id;
                AdriaTicketData.BK_Images.InsertOnSubmit(i);
            }

            AdriaTicketData.SubmitChanges();
            return Json("inserted", JsonRequestBehavior.AllowGet);
        }
 partial void DeleteBK_Image(BK_Image instance);
 partial void InsertBK_Image(BK_Image instance);
 partial void UpdateBK_Image(BK_Image instance);
		private void detach_BK_Images(BK_Image entity)
		{
			this.SendPropertyChanging();
			entity.BK_ImageGallery = null;
		}