public async Task <ActionResult <Barbeiro> > GetByID(int id) { var barbeiro = await _barbeiroRepo.GetByID(id); var servicos = await _servicosRepo.GetAll(); var fotos = await _fotosRepo.GetByBarbeiroID(id); var depoimentos = await _depoimentosRepo.GetByBarbeiroID(id); var agenda = await _agendaRepo.GetByBarbeiroID(id); Barbeiro barber = new Barbeiro( barbeiro.IdBarbeiro, barbeiro.Avatar, barbeiro.Nome, barbeiro.Distancia, barbeiro.Latitude, barbeiro.Longitude, barbeiro.Estrelas ); barber.Depoimentos = depoimentos; barber.Servicos = servicos; barber.Fotos = fotos; barber.Horarios = agenda; return(barber); }