public List <BE.HostingUnit> GetHostingUnitsListByCond(Predicate <BE.HostingUnit> cond) { IEnumerable <BE.HostingUnit> HUI = from HostU in DS.DataSource.HostingUnitsList where cond(HostU) select HostU.Copy(); List <BE.HostingUnit> HUL = HUI.ToList(); return(HUL); }
public List <BE.HostingUnit> GetHostingUnitsList() { IEnumerable <BE.HostingUnit> HUI = from HostU in DS.DataSource.HostingUnitsList select HostU.Copy(); List <BE.HostingUnit> HUL = HUI.ToList(); return(HUL); }
/// <summary> ///Get Hosting Units List from the data source by condition /// </summary> /// <param name="cond"></param> /// <returns>Hosting Units List</returns> public List <BE.HostingUnit> GetHostingUnitsListByCond(Predicate <BE.HostingUnit> cond) { var v = loadListFromXML <BE.HostingUnit>(HostingUnitsPath); return((from HostU in v where cond(HostU) select HostU.Copy()).ToList()); }