public TrackObjectBase GetLayoutByLayoutId(string layoutId) { return(MultiLayouts?.FirstOrDefault(x => x.LayoutId?.Equals(layoutId, StringComparison.OrdinalIgnoreCase) == true)); }
public TrackObjectBase GetLayoutById(string idWithLayout) { return(MultiLayouts?.FirstOrDefault(x => x.IdWithLayout.Equals(idWithLayout, StringComparison.OrdinalIgnoreCase)) ?? (idWithLayout == Id ? this : null)); }