示例#1
0
        public IActionResult Create()
        {
            var especies      = _listEspecieService.FindAll();
            var proprietarios = _listProprietarioService.FindAll();
            var viewModel     = new AnimalFormViewModel {
                Proprietarios = proprietarios, Especies = especies
            };

            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));
        }
        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));
        }