public async Task <IActionResult> ObterAgendamentos(string data, jQueryDataTableRequestModel request)
        {
            try
            {
                DateTime dataConsulta = DateTime.Now;
                if (!string.IsNullOrEmpty(data))
                {
                    dataConsulta = Convert.ToDateTime(data);
                }

                var diaSemana = DateTimeExtension.GetDayOfWeek(dataConsulta, new System.Globalization.CultureInfo("pt-Br"));
                var lista     = (await _repositorio.ObterCalendarioPorDiaSemanaAsync(diaSemana)).AsQueryable();

                if (request.sSearch != null && request.sSearch.Length > 0)
                {
                    lista = lista.Where(x => x.DesTurma.ToUpper().Contains(request.sSearch.ToUpper()));
                }

                var model = (from r in lista
                             select new
                {
                    data = dataConsulta.ToShortDateString(),
                    r.IdTurma,
                    r.Professor,
                    r.FotoProfessor,
                    r.DesTurma,
                    r.CodTurma,
                    r.TipoTurma,
                    r.SiglaDia,
                    r.Hora,
                    r.TotalAluno,
                    sala = r.DesSala,
                    Foto = $" <img class=\"rounded img-thumbnail\" style=\" height: 50px;\" src=\"/images/avatars/Funcionario/{r.FotoProfessor}\">",
                }).DataTableResponse(request);

                return(Ok(model));
            }
            catch (System.Exception ex)
            {
                throw;
            }
            //var draw = requestformdata["draw"];
            //dynamic response = new
            //{
            //    Data = lista.ToList(),
            //    Draw = "1",
            //    RecordsFiltered = lista.Count(),
            //    RecordsTotal = lista.Count()
            //};
        }