Пример #1
0
        public List <Employee> DisplayDesignation()
        {
            try
            {
                ProjectManagerModel context = new ProjectManagerModel();

                var Query = from item in context.Projects
                            select item.EmployeeId;
                var q = from Employee in context.Employees
                        where Employee.EmployeeDesignation == "ProjectManager" && !Query.Contains(Employee.EmployeeId)
                        select Employee;
                return(q.ToList());
            }

            catch (Exception ex)
            {
                throw new ProjectManagerException("Error getting data" + ex);
            }
        }
Пример #2
0
 public EmployeeRepository()
 {
     _dbContext = new ProjectManagerModel();
 }
Пример #3
0
 public ProjectRepository()
 {
     objContext = new ProjectManagerModel();
 }