示例#1
0
 public void LlenarListaRol(IEnumerable <Rol> Lista)
 {
     try
     {
         foreach (var item in Lista)
         {
             ListaRol.Add(item);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public async Task LlenarListaRol()
        {
            try
            {
                var listaRol = await RolRepository.GetComboRol();

                foreach (var item in listaRol)
                {
                    ListaRol.Add(item);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }