Пример #1
0
        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();
        }
Пример #2
0
 // GET: TipoCargoProfissionalSaude
 public async Task <IActionResult> Index()
 {
     return(View(_service.GetAllTipoCargoProfissionalSaude()));
 }