Exemple #1
0
        public IActionResult ConnectPen()
        {
            _penConnector.connectPen();

            ViewBag.Title = "Connecting...";
            return(RedirectToAction("Client", "App"));
        }
        public async Task <IActionResult> ConnectPen()
        {
            _penConnector.connectPen();
            _penConnector.ClearImage();

            ViewBag.Title = "Connecting...";
            var            id    = Request.Path.ToString().Substring(Request.Path.ToString().LastIndexOf('/') + 1);
            AdminViewModel model = await DocumentDBRepository <AdminViewModel> .GetItemAsync(id);

            ViewBag.pdfURL  = GetBlobSasUri(model.DocGuid);
            ViewBag.DocName = model.DocName;
            ViewBag.Id      = model.Id;
            return(View("Client"));
            //return new EmptyResult();
        }