public async Task <IHttpActionResult> Run(int id) { List <ScanResult> mlist = null; try { ScanBLL bll = new ScanBLL(_unit); var scan = bll.GetByID(id); mlist = new ScanCalculator(_unit).RunScan(scan); } catch (Exception ex) { LogHelper.Error(_log, ex.ToString()); return(InternalServerError(ex)); } return(Ok(mlist)); }
public TestScanManager() { _bll = new ScanCalculator(_unit); }