Esempio n. 1
0
        public JobNameID(int id)
        {
            superuniversityEntities1 db  = new superuniversityEntities1();
            IRepository <Job>        job = new Repository <Job>();
            int i = job.GetById(id).CompanyID;

            this.JBs = (from s in db.Job
                        where (s.CompanyID == i)
                        select s).ToList();
        }
Esempio n. 2
0
        public CompanyName(int id)
        {
            superuniversityEntities1      db  = new superuniversityEntities1();
            IRepository <EmployerCompany> emp = new Repository <EmployerCompany>();
            IRepository <Job>             job = new Repository <Job>();
            int i = job.GetById(id).CompanyID;

            this.CN = (from s in db.EmployerCompany
                       where s.CompanyID == i
                       select s).ToList();
        }