public ActionResult DeletarPaciente(int id, IFormCollection collection) { Models.Data.PacienteData pd = new Models.Data.PacienteData(); pd.DeletarPaciente(id); return(RedirectToAction(nameof(ListaPaciente))); }
public ActionResult CadastrarPaciente(Models.Paciente collection) { Models.Data.PacienteData pacienteData = new Models.Data.PacienteData(); pacienteData.CadastrarPaciente(collection); return(RedirectToAction(nameof(ListaPaciente))); }
public ActionResult EditarPaciente(Models.Paciente collection) { Models.Data.PacienteData pd = new Models.Data.PacienteData(); pd.EditarPaciente(collection); return(RedirectToAction(nameof(EditarPaciente))); }
// GET: Paciente/Delete/5 public ActionResult DeletarPaciente(int id) { Models.Data.PacienteData pd = new Models.Data.PacienteData(); return(View(pd.DetalhesPaciente(id))); }
public ActionResult ListaPaciente() { Models.Data.PacienteData pd = new Models.Data.PacienteData(); return(View(pd.ListaPaciente())); }