public bool SaveInspectionResults(WorkorderLabel workorderLabel, ItemData itemData, EnumLabelType labelType) { try { if (workorderLabel.Id > 0 && itemData.IsDataEmpty == false) { List <WorkorderLabelInspection> workorderLabelInspections = PrepareInspectionResults(workorderLabel.Id, itemData, labelType); AddOrUpdateRange(workorderLabelInspections); int positiveCount = workorderLabelInspections.Count(x => x.Result == true); return(positiveCount == workorderLabelInspections.Count); } else { return(true); } } catch (Exception ex) { Logger2FileSingleton.Instance.SaveLog("PrepareInspectionResultToSave Exception. " + ex.Message); } return(true); }