コード例 #1
0
        public List <Hotel> RetrieveAllByFiltro(HotelFiltro hotelFiltro)
        {
            try
            {
                var lstResult = SqlDao.GetInstance()
                                .ExecuteQueryProcedure(
                    hotelMapper.GetRetrieveAllByFiltroStatement(hotelFiltro)
                    );

                if (lstResult.Count <= 0)
                {
                    return(default(List <Hotel>));
                }

                var obj = EntityObjectMapper.BuildObjects(lstResult);

                return(obj.Cast <Hotel>().ToList());
            }
            catch (Exception e)
            {
                ManageException(e);
            }
            return(null);
        }