예제 #1
0
        /// <summary>
        /// Récupérer un Formation en base
        /// </summary>
        /// <param name="formationId">Id de l'Formation</param>
        /// <returns>Experience</returns>
        public Formation GetFormation(int formationId)
        {
            FormationQuery fq = new FormationQuery(_context);

            return(fq.GetById(formationId));
        }
예제 #2
0
        /// <summary>
        /// Récupérer une liste de Formations en base
        /// </summary>
        /// <returns>Formations List</returns>
        public List <Formation> GetAllFormations()
        {
            FormationQuery fq = new FormationQuery(_context);

            return(fq.GetAll().ToList());
        }