Exemplo n.º 1
0
        public static List <ReservationsEntity> GetReservationsByRule(ReservationsSearchEntity search, PagerInfo pager)
        {
            List <ReservationsEntity> all    = new List <ReservationsEntity>();
            ReservationsRepository    mr     = new ReservationsRepository();
            List <ReservationsInfo>   miList = mr.GetReservationsPagerByRule(search, pager);

            foreach (ReservationsInfo mInfo in miList)
            {
                ReservationsEntity entity = TranslateReservationsEntity(mInfo);
                all.Add(entity);
            }
            return(all);
        }