Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        /// <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());
        }