コード例 #1
0
        public List <clsBiblio> Select_BiblioPrincipale(string user)
        {
            try
            {
                List <clsBiblio> oDataList = new List <clsBiblio>().ToList();

                List <BusinessEntity.Biblio> mesBiblio = BusinessLayer.Biblio.LoadMAjorLibrary(user);

                foreach (var item in mesBiblio)
                {
                    clsBiblio cls = new clsBiblio()

                    {
                        //id =item.id,
                        //code = item.code,

                        libellé = item.libellé,
                    };
                    oDataList.Add(cls);
                }



                return(oDataList);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
        public List <clsBiblio> GetAll()
        {
            try
            {
                List <clsBiblio> oDataList = new List <clsBiblio>().ToList();

                List <BusinessEntity.Biblio> mesBiblio = BusinessLayer.Biblio.LoadAllLIbrary();

                foreach (var item in mesBiblio)
                {
                    clsBiblio cls = new clsBiblio()

                    {
                        //id =item.id,
                        //code = item.code,

                        libellé = item.libellé,
                    };
                    oDataList.Add(cls);
                }



                return(oDataList);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }