public List <BE.GuestRequest> GetGuestRequestsList() { IEnumerable <BE.GuestRequest> GRI = from GR in DS.DataSource.GuestRequestsList select GR.Copy(); List <BE.GuestRequest> GRL = GRI.ToList(); return(GRL); }
public List <BE.GuestRequest> GetGuestRequestsListByCond(Predicate <BE.GuestRequest> cond) { IEnumerable <BE.GuestRequest> GRI = from GR in DS.DataSource.GuestRequestsList where cond(GR) select GR.Copy(); List <BE.GuestRequest> GRL = GRI.ToList(); return(GRL); }
/// <summary> /// Get Guest Requests List from the data source by condition /// </summary> /// <param name="cond"></param> /// <returns>Guest Requests List</returns> public List <BE.GuestRequest> GetGuestRequestsListByCond(Predicate <BE.GuestRequest> cond) { var v = loadListFromXML <BE.GuestRequest>(GuestRequestsPath); return((from GR in v where cond(GR) select GR.Copy()).ToList()); }