public ActionResult ViewBlob(string ProjectId) { try { Guid BlobName = new Guid(ProjectId); ViewBag.ViewDetail = _metadataBlobCRUD.DownloadText(BlobName.ToString("N")); } catch { return(Json("error")); } return(Json(new { success = true, val = ViewBag.ViewDetail }, JsonRequestBehavior.AllowGet)); }
private void btnViewBlob_Click(object sender, EventArgs e) { switch (comboEnvironment.SelectedItem.ToString()) { case "CDCDev": MessageBox.Show("Blob is updated with Id : "); break; case "CDCQA": ViewMetaDataResponse viewMetadataRes = new ViewMetaDataResponse(); viewMetadataRes.txtVewMetadata.Text = _metadataBlobCRUD.DownloadText(new Guid(lstBlob.SelectedItem.ToString().Split('|')[2].Trim().Split(':')[1].Trim()).ToString("N")); viewMetadataRes.ShowDialog(Owner = ParentForm); break; case "Ananth": MessageBox.Show("You have Select Ananth"); break; case "Garry": MessageBox.Show("You have Select Garry"); break; } }