Example #1
0
        public List <CDemande> GetList()
        {
            db = new DataContextDataContext();
            List <CDemande> listDemande         = new List <CDemande>();
            var             chargerListeDemande = db.GetAllDemande();

            foreach (var item in chargerListeDemande)
            {
                listDemande.Add(new CDemande((int)item.idDemande, (double)item.montant, item.motif, item.dateDemande, item.idPersonnel));
            }
            return(listDemande);
        }