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)); }
public List <HotelDTO> SelecionarTodos(string WifiGratis, string CafeGratis, string EstacionamentoGratis, string Piscina) { return(HotelAdapter.ListParaDTO(_hotelRepositorio.SelecionarTodos(WifiGratis, CafeGratis, EstacionamentoGratis, Piscina))); }