示例#1
0
        public string UpdateSlideImage(System.Web.HttpPostedFileBase Filedata, string slideid, string slideshowid)
        {
            try
            {
                ClientSlideShowSlideClient slides = new ClientSlideShowSlideClient();
                ClientSlideShowSlide       slide  = slides.GetByPartitionAndRowKey(slideshowid, slideid);

                UploadSlideImage(Filedata, slide, slideshowid);

                return("{\"success\":true}");
            }
            catch
            {
                return("{\"error\":\"error\"}");
            }
        }
示例#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\"}");
            }
        }
示例#3
0
        public ActionResult DeleteSlide(string id, string slideshowid)
        {
            ClientSlideShowSlideClient dscc = new ClientSlideShowSlideClient();

            return(View(dscc.GetByPartitionAndRowKey(slideshowid, id)));
        }