public MedicoController()
 {
     using (var medico = new MedicoServices())
     {
         ViewBag.qtdMedico = medico.GetAll().Count;
     }
     using (var paciente = new PacienteServices())
     {
         ViewBag.qtdPaciente = paciente.GetAll().Count;
     }
 }
Beispiel #2
0
        // GET: Home
        public ActionResult Index()
        {
            using (var medico = new MedicoServices())
            {
                ViewBag.qtdMedico = medico.GetAll().Count;
            }


            using (var paciente = new PacienteServices())
            {
                ViewBag.qtdPaciente = paciente.GetAll().Count;
            }


            return(View());
        }
Beispiel #3
0
 // GET: Paciente
 public ActionResult Index()
 {
     return(View(services.GetAll().ToList <Paciente>()));
 }