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()); } }
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\"}"); } }