public async void ClassifyItem(PenetrationDataPointDto dto) { if (dto == null) { return; } var result = NaiveBayes.CanPenetrate(Penetrations, dto); PenetrationDataPointRepository penetrationDataPointRepository = new PenetrationDataPointRepository(new PenetrationDataContext()); await penetrationDataPointRepository.UpdatePenetration(dto.Id, result); LoadPenetrations(); }