public List <EmployeeView> GetAllEmployees() { var employees = _employeeClient.GetEmployees(); if (employees is null || !employees.Any()) { return(new List <EmployeeView>()); } var result = new List <EmployeeView>(); employees.ForEach(c => { result.Add(_employeeMapper.ToView(c, new EmployeeView())); }); return(result); }