Example #1
0
        public ActionResult EditSlide(string id, ClientSlideShowSlide item)
        {
            try
            {
                ClientSlideShowSlideClient dscc = new ClientSlideShowSlideClient();
                dscc.Update(item);

                ExportJson(item.PartitionKey);

                return(RedirectToAction("Edit", new { id = item.PartitionKey }));
            }
            catch
            {
                return(View());
            }
        }
Example #2
0
        public string UpdateSlideCaption(string slideshowid, string slideid, string caption)
        {
            try
            {
                ClientSlideShowSlideClient dscc  = new ClientSlideShowSlideClient();
                ClientSlideShowSlide       slide = dscc.GetByPartitionAndRowKey(slideshowid, slideid);
                slide.Caption = caption;
                dscc.Update(slide);

                //Publish JSON to cloud
                ExportJson(slideshowid);

                return("{\"success\":true}");
            }
            catch
            {
                return("{\"error\":\"error\"}");
            }
        }