Exemple #1
0
        public IEnumerable <Employees> Get()
        {
            EmployeesRules   employeesRules = new EmployeesRules();
            List <Employees> employeesList  = employeesRules.GetEmployees();

            return(employeesList);
        }
Exemple #2
0
        public List <Employees> Get(int id)
        {
            EmployeesRules   employeesRules = new EmployeesRules();
            List <Employees> employeesList  = employeesRules.GetEmployees();
            List <Employees> result         = new List <Employees>();

            Employees employed = employeesList.FirstOrDefault(x => x.id == id);

            result.Add(employed);

            return(result);
        }