Beispiel #1
0
 public IActionResult Index()
 {
     using (var data = new ProcedimentoData())
     {
         return(View(data.Read()));
     }
 }
Beispiel #2
0
        public IActionResult Create()
        {
            using (var data = new AnimalData())
            {
                ViewBag.Animal = data.Read();
            }

            using (var data = new VeterinarioData())
            {
                ViewBag.Veterinario = data.Read();
            }

            using (var data = new ProcedimentoData())
            {
                ViewBag.Procedimento = data.Read();
            }

            using (var data = new ConsultaData())
            {
                return(View());
            }
        }
Beispiel #3
0
 public IActionResult Update(int id)
 {
     using (var data = new ProcedimentoData())
         return(View(data.Read(id)));
 }