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)); }
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))); }