// GET: AllEmployees public async Task <ActionResult> Index() { var employeeDisplayModel = new EmployeeDisplayModel { Employees = await _employeeOrchestrator.GetAllEmployees() }; return(View(employeeDisplayModel)); }
// GET: api/Employees public async Task <List <Employee> > GetAllEmployees() { List <EmployeeViewModel> employeeList = await _employeeOrchestrator.GetAllEmployees(); List <Employee> empList = new List <Employee>(); foreach (EmployeeViewModel emp in employeeList) { Employee e = new Employee(); e.FullName = emp.FirstName + " " + emp.MiddleName + " " + emp.LastName; e.EmployeeId = emp.EmployeeId; empList.Add(e); } return(empList); }
public async Task <ICollection <EmployeeViewModel> > GetAllEmployees() { var employees = await _employeeOrchestrator.GetAllEmployees(); return(employees); }
public List <EmployeeViewModel> GetProjectMembers() { var employees = _employeeOrchestrator.GetAllEmployees(); return(employees); }