Example #1
0
        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);
        }