Beispiel #1
0
        /// <summary>
        /// Récupérer une liste de Postulations en base par employee
        /// </summary>
        /// <param name="e">Employee</param>
        /// <returns>Postulation List</returns>
        public List <Postulation> GetPostulationsFromEmployee(Employee e)
        {
            PostulationQuery   pq        = new PostulationQuery(_context);
            List <Postulation> listPosts = pq.GetByEmployee(e).ToList();

            foreach (Postulation post in listPosts)
            {
                post.Offer = Manager.Instance.GetOffer(post.OfferId);
            }
            return(listPosts);
        }
Beispiel #2
0
        /// <summary>
        /// Récupérer une liste de Postulations en base par offre
        /// </summary>
        /// <param name="o">Offer</param>
        /// <returns>Postulation List</returns>
        public List <Postulation> GetPostulationsFromOffer(Offer o)
        {
            PostulationQuery   pq = new PostulationQuery(_context);
            List <Postulation> listPostulations = pq.GetByOffer(o).ToList();

            foreach (Postulation post in listPostulations)
            {
                post.Employee = GetEmployee(post.EmployeeId);
            }
            return(listPostulations);
        }
Beispiel #3
0
        public List <Postulation> GetPostulationByEmployee(Employee employee)
        {
            PostulationQuery pq = new PostulationQuery(contexte);

            return(pq.GetByEmployee(employee).ToList());
        }
Beispiel #4
0
        public List <Postulation> GetAllPostulation()
        {
            PostulationQuery pq = new PostulationQuery(contexte);

            return(pq.GetAll().ToList());
        }
        public List <Postulation> GetByEmpId(int id)
        {
            PostulationQuery pq = new PostulationQuery(context);

            return(pq.GetByEmpID(id).ToList());
        }