public async Task <IActionResult> DoScan([FromForm] NewScanViewModel model) { await _scannerHubContext.Clients.All.SendAsync("DoScan", model); return(Ok()); }
public IActionResult Index() { var model = new NewScanViewModel(); return(View(model)); }