private static MergeItem CreateMergeItem(string majorUid, FileModel model, IHostService host) { var vm = (PageViewModel)model.Content; var majorItem = vm.Items.Find(item => item.Uid == majorUid); if (majorItem == null) { host.LogError("Cannot find uid in model.", file: model.File); return(null); } return(CreateMergeItemCore(majorItem, vm)); }
private static MergeItem CreateMergeItem(string majorUid, FileModel model, IHostService host) { var vm = (PageViewModel)model.Content; var majorItem = vm.Items.Find(item => item.Uid == majorUid); if (majorItem == null) { host.LogError("Cannot find uid in model.", file: model.File); return null; } return CreateMergeItemCore(majorItem, vm); }