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

            Quarto hotel = this._quartoRepositorio.Selecionar(id);

            return(QuartoAdapter.ParaDTO(hotel));
        }
Exemplo n.º 2
0
 public List <QuartoDTO> SelecionarTodos(string PrecoInicial, string PrecoFinal,
                                         string Frigobar, string Tv, string Banheiro,
                                         string Telefone, string Ventilador)
 {
     return(QuartoAdapter.ListParaDTO(_quartoRepositorio.SelecionarTodos(PrecoInicial, PrecoFinal, Frigobar, Tv, Banheiro, Telefone, Ventilador)));
 }