public IQueryable <Department> GetAllDepartments(int id)
        {
            ADV2017Entities adv2017Entities = new ADV2017Entities();

            return(adv2017Entities.Departments.Where(e => e.DepartmentID == id).Select(e => e));
        }
예제 #2
0
        public IQueryable <Employee> GetAllEmployees(int id)
        {
            ADV2017Entities adv2017Entities = new ADV2017Entities();

            return(adv2017Entities.Employees.Where(e => e.BusinessEntityID == id).Select(e => e));
        }
        public IQueryable <Department> GetAllDepartments()
        {
            ADV2017Entities adv2017Entities = new ADV2017Entities();

            return(adv2017Entities.Departments);
        }
예제 #4
0
        public IQueryable <Employee> GetAllEmployees()
        {
            ADV2017Entities adv2017Entities = new ADV2017Entities();

            return(adv2017Entities.Employees);
        }