예제 #1
0
        public ActionResult DeletarPaciente(int id, IFormCollection collection)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();
            pd.DeletarPaciente(id);

            return(RedirectToAction(nameof(ListaPaciente)));
        }
예제 #2
0
        public ActionResult CadastrarPaciente(Models.Paciente collection)
        {
            Models.Data.PacienteData pacienteData = new Models.Data.PacienteData();
            pacienteData.CadastrarPaciente(collection);

            return(RedirectToAction(nameof(ListaPaciente)));
        }
예제 #3
0
        public ActionResult EditarPaciente(Models.Paciente collection)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();
            pd.EditarPaciente(collection);

            return(RedirectToAction(nameof(EditarPaciente)));
        }
예제 #4
0
        // GET: Paciente/Delete/5
        public ActionResult DeletarPaciente(int id)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();

            return(View(pd.DetalhesPaciente(id)));
        }
예제 #5
0
        public ActionResult ListaPaciente()
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();

            return(View(pd.ListaPaciente()));
        }