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

            ViewBag.Title = "Connecting...";
            return(RedirectToAction("Client", "App"));
        }
예제 #2
0
        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();
        }