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\"}"); } }
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\"}"); } }
public ActionResult DeleteSlide(string id, string slideshowid) { ClientSlideShowSlideClient dscc = new ClientSlideShowSlideClient(); return(View(dscc.GetByPartitionAndRowKey(slideshowid, id))); }