Beispiel #1
0
        public ActionResult DeletarExame(int id, IFormCollection collection)
        {
            Models.Data.ExameData ed = new Models.Data.ExameData();
            ed.DeletarExame(id);

            return(RedirectToAction(nameof(ListaExame)));
        }
Beispiel #2
0
        public ActionResult CadastrarExame(Models.Exame collection)
        {
            Models.Data.ExameData ed = new Models.Data.ExameData();
            ed.CadastrarExame(collection);

            return(RedirectToAction(nameof(ListaExame)));
        }
Beispiel #3
0
        public ActionResult EditarExame(Models.Exame collection)
        {
            Models.Data.ExameData ed = new Models.Data.ExameData();
            ed.EditarExame(collection);

            return(RedirectToAction(nameof(EditarExame)));
        }
Beispiel #4
0
        // GET: Exame/Delete/5
        public ActionResult DeletarExame(int id)
        {
            Models.Data.ExameData ed = new Models.Data.ExameData();

            return(View(ed.DetalhesExame(id)));
        }
Beispiel #5
0
        public ActionResult ListaExame()
        {
            Models.Data.ExameData ed = new Models.Data.ExameData();

            return(View(ed.ListaExame()));
        }