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