Exemplo n.º 1
0
        public List <EmployeeDataModel> GetAllEmployees()
        {
            List <tbl_Employee>      employee     = employeeEntity.tbl_Employee.ToList();
            List <EmployeeDataModel> employeeData = new List <EmployeeDataModel>();

            foreach (tbl_Employee _Employee in employee)
            {
                var data = entityMapper.DBModelMappingGet(_Employee);
                employeeData.Add(data);
            }
            return(employeeData);
        }