private void SetDropdownListToViewBag() { ViewBag.PerfilAcessoList = _perfilAcessoService.GetAllPerfilAcessoAllowedForRegister().Select(x => new SelectListItem { Text = x.Nome, Value = x.Id.ToString() }).ToList(); ViewBag.TipoCargoProfissionalSaudeList = _tipoCargoProfissionalSaudeService.GetAllTipoCargoProfissionalSaude() .Select(x => new SelectListItem { Text = x.Nome, Value = x.Id.ToString() }).ToList(); }
// GET: TipoCargoProfissionalSaude public async Task <IActionResult> Index() { return(View(_service.GetAllTipoCargoProfissionalSaude())); }