public async Task <IActionResult> ClearImage() { if (_penConnector != null) { _penConnector.ClearSignature(); _penConnector.ClearImage(); } var id = Request.Path.ToString().Substring(Request.Path.ToString().LastIndexOf('/') + 1); AdminViewModel model = await DocumentDBRepository <AdminViewModel> .GetItemAsync(id); ViewBag.pdfURL = GetBlobSasUri(model.DocGuid); ViewBag.Id = model.Id; ViewBag.DocName = model.DocName; return(View("Client")); }