Exemple #1
0
        public void carregarDropDownLists()
        {
            var farmacias = _farmaciaRepository.GetFarmacia();

            Farmacias = new SelectList(farmacias.OrderBy(tb => tb.Nome), "Id", "Nome", null);

            var posicoes = _posicaoRepository.GetPosicao();

            Posicoes = new SelectList(posicoes.OrderBy(tb => tb.Nome), "Id", "Nome", null);
        }
Exemple #2
0
        public void carregarFarmacias()
        {
            var farmacias = _farmaciasRepository.GetFarmacia();

            Farmacias = new SelectList(farmacias.OrderBy(tb => tb.Nome), "Id", "Nome", null);
        }
Exemple #3
0
        public void carregarDropDownListFarmacia(int id)
        {
            var farmacias = _farmaciaRepository.GetFarmacia();

            Farmacias = new SelectList(farmacias.OrderBy(tb => tb.Nome), "Id", "Nome", farmacias.Where(tb => tb.Id == id));
        }
Exemple #4
0
 public void OnGet()
 {
     listaFarmacias = _farmaciaRepository.GetFarmacia();
 }