コード例 #1
0
        public async Task <IActionResult> DoScan([FromForm] NewScanViewModel model)
        {
            await _scannerHubContext.Clients.All.SendAsync("DoScan", model);

            return(Ok());
        }
コード例 #2
0
        public IActionResult Index()
        {
            var model = new NewScanViewModel();

            return(View(model));
        }