public ActionResult CheckExist() { BlobStorageService svBlob = new BlobStorageService(); var exist = svBlob.Exists("Manual/mail-month.txt"); var notexist = svBlob.Exists("Manual/mail-month2.txt"); return(Json(new { exist = exist, notexist = notexist }, JsonRequestBehavior.AllowGet)); }
public ActionResult CheckExist(string name) { BlobStorageService svBlob = new BlobStorageService(); ViewBag.Path = name; ViewBag.Exist = svBlob.Exists(name); return(View("TestBlob")); }