예제 #1
0
        public IActionResult Create()
        {
            var proprietarios = _listProprietarioService.FindAll();
            var animals       = _listAnimalService.FindAll();
            var viewModel     = new MedicamentoFormViewModel {
                Animals = animals, Proprietarios = proprietarios
            };

            return(View(viewModel));
        }
        public IActionResult Create()
        {
            var especies      = _listEspecieService.FindAll();
            var proprietarios = _listProprietarioService.FindAll();
            var animals       = _listAnimalService.FindAll();
            var viewModel     = new ExameFormViewModel {
                Animals = animals, Especies = especies, Proprietarios = proprietarios
            };

            return(View(viewModel));
        }
        public IActionResult Create()
        {
            var medicamentos  = _listMedicamentoService.FindAll();
            var especies      = _listEspecieService.FindAll();
            var proprietarios = _listProprietarioService.FindAll();
            var animals       = _listAnimalService.FindAll();
            var veterinarios  = _listVeterinarioService.FindAll();
            var viewModel     = new ConsultaFormViewModel {
                Veterinarios = veterinarios, Animal = animals, Especies = especies, Proprietarios = proprietarios, Medicamentos = medicamentos
            };

            return(View(viewModel));
        }