public void SaveAllDetail() { foreach (var item in _results) { ImageResult.SaveDetailFile(item.FileName); } }
public ImageResult AddToStore(ImageResult result) { if (!Exists(result.FileName)) { _results.Add(result); return(result); } _results.FirstOrDefault(x => x.FileName == result.FileName)?.UpdateContours(result.GetContours); return(_results.FirstOrDefault(x => x.FileName == result.FileName)); }