コード例 #1
0
ファイル: PacienteController.cs プロジェクト: jessyloren/TCC
        public ActionResult DeletarPaciente(int id, IFormCollection collection)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();
            pd.DeletarPaciente(id);

            return(RedirectToAction(nameof(ListaPaciente)));
        }
コード例 #2
0
ファイル: PacienteController.cs プロジェクト: jessyloren/TCC
        public ActionResult CadastrarPaciente(Models.Paciente collection)
        {
            Models.Data.PacienteData pacienteData = new Models.Data.PacienteData();
            pacienteData.CadastrarPaciente(collection);

            return(RedirectToAction(nameof(ListaPaciente)));
        }
コード例 #3
0
ファイル: PacienteController.cs プロジェクト: jessyloren/TCC
        public ActionResult EditarPaciente(Models.Paciente collection)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();
            pd.EditarPaciente(collection);

            return(RedirectToAction(nameof(EditarPaciente)));
        }
コード例 #4
0
ファイル: PacienteController.cs プロジェクト: jessyloren/TCC
        // GET: Paciente/Delete/5
        public ActionResult DeletarPaciente(int id)
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();

            return(View(pd.DetalhesPaciente(id)));
        }
コード例 #5
0
ファイル: PacienteController.cs プロジェクト: jessyloren/TCC
        public ActionResult ListaPaciente()
        {
            Models.Data.PacienteData pd = new Models.Data.PacienteData();

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