Exemplo n.º 1
0
        public static Prestation_Territoire Join(Prestation prestation, Territoire territoire)
        {
            var join = new Prestation_Territoire()
            {
                Prestation = prestation, Territoire = territoire
            };

            DAO.Persist(join);
            return(join);
        }
Exemplo n.º 2
0
        public static Prestation_Territoire Join(int prestationId, int territoireId)
        {
            var join = new Prestation_Territoire()
            {
                Prestation = DAO.db.Prestations.Find(prestationId), Territoire = DAO.db.Territoires.Find(territoireId)
            };

            DAO.Persist(join);
            return(join);
        }