public IActionResult Index() { ServicoModel objServico = new ServicoModel(); ViewBag.ListaServico = objServico.ListaServico(); return(View()); }
public IActionResult ExtratoConsultas(ConsultaModel formulario) { ClienteModel objClinte = new ClienteModel(); ViewBag.ListaCliente = objClinte.ListaCliente(); ConsultaModel objConsulta = new ConsultaModel(); ViewBag.ListaConsulta = objConsulta.ListaConsulta(); ServicoModel objServico = new ServicoModel(); ViewBag.ListaServico = objServico.ListaServico(); FuncionarioModel objFuncionario = new FuncionarioModel(); ViewBag.ListaFuncionario = objFuncionario.ListaFuncionarioModel(); PagamentoModel objPagamento = new PagamentoModel(); ViewBag.ListaPagamento = objPagamento.ListaPagamento(); return(View()); }
public IActionResult CriarConsulta(int?id) { if (id != null) { } ClienteModel objClinte = new ClienteModel(); ViewBag.ListaCliente = objClinte.ListaCliente(); ConsultaModel objConsulta = new ConsultaModel(); ViewBag.ListaConsulta = objConsulta.ListaConsulta(); ServicoModel objServico = new ServicoModel(); ViewBag.ListaServico = objServico.ListaServico(); FuncionarioModel objFuncionario = new FuncionarioModel(); ViewBag.ListaFuncionario = objFuncionario.ListaFuncionarioModel(); PagamentoModel objPagamento = new PagamentoModel(); ViewBag.ListaPagamento = objPagamento.ListaPagamento(); return(View()); }