Пример #1
0
        // GET: Vacina/Create
        public async Task <IActionResult> Create()
        {
            ViewData["listaAgentePatogenico"] = await _agentePatogenicoDao.RecuperarTodosAsync();

            ViewData["listaLaboratorio"] = await _laboratorioDao.RecuperarTodosAsync();

            ViewData["listaTipoVacina"] = await _tipoVacinaDao.RecuperarTodosAsync();

            return(View());
        }
Пример #2
0
 // GET: TipoVacina
 public async Task <IActionResult> Index()
 {
     return(View(_mapper.Map <List <TipoVacinaViewModel> >(await _tipoVacinaDao.RecuperarTodosAsync())));
 }