public ActionResult <Agendamento> Get(string date) { var agendamento = _dbService.GetByDate(date); //apaga os horários já preenchidos.. //agendamento.Horarios.RemoveAll(x => x.Vagas == 0); if (agendamento == null) { return(NotFound()); } return(agendamento); }