Exemple #1
0
 public ActionResult <List <Models.Response.TestDriveResponse.ClienteAgendamento> > ListarAgendamentosDia(int idfuncionario)
 {
     try
     {
         List <Models.TbAgendamento> agendamentos = business.ListarAgendamentos(idfuncionario);
         List <Models.Response.TestDriveResponse.ClienteAgendamento> resp = agendamentos
                                                                            .Select(x => conversor.ParaResponseagenda(x)).ToList();
         return(resp);
     }
     catch (System.Exception e)
     {
         return(new NotFoundObjectResult(new Models.Response.erro(404, e.Message)));
     }
 }