private static string getBaseComponentGroup(BaseComponentView baseComponent) { var currentDestination = GetDestinationStringFromAircraft(baseComponent.ParentAircraftId, false, null); return($"{currentDestination} {baseComponent.BaseComponentType} . Component PN {baseComponent.PartNumber}"); }
public static IEnumerable <RunUpView> GetByBaseComponent(this List <RunUpView> records, BaseComponentView bd) { List <RunUpView> runups = new List <RunUpView>(); if (bd != null) { runups.AddRange(records.Where(r => r.BaseComponent.Id == bd.Id)); } return(runups); }