//========================================================================= // // AJAX ACTIONS // //========================================================================= /// <summary> /// Returns a list of all snapshots, including their URLs, blob names, and dates. /// </summary> /// <returns></returns> public JsonResult List() { var snapshots = SnapshotManager.GetSnapshots(RoleSettings.StorageCredentials, RoleSettings.ReplicaSetName); var data = snapshots.Select(blob => new { dateString = ToString(blob.Attributes.Snapshot), blob = blob.Name, uri = SnapshotManager.GetSnapshotUri(blob) }); return(Json(new { snapshots = data }, JsonRequestBehavior.AllowGet)); }