Пример #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));
        }