예제 #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()));
 }