Exemplo n.º 1
0
        public HotelDTO Selecionar(int id)
        {
            if (id == 0)
            {
                throw new ApplicationException("Id não informado");
            }

            Hotel hotel = this._hotelRepositorio.Selecionar(id);

            return(HotelAdapter.ParaDTO(hotel));
        }
Exemplo n.º 2
0
 public List <HotelDTO> SelecionarTodos(string WifiGratis, string CafeGratis, string EstacionamentoGratis, string Piscina)
 {
     return(HotelAdapter.ListParaDTO(_hotelRepositorio.SelecionarTodos(WifiGratis, CafeGratis, EstacionamentoGratis, Piscina)));
 }