- Unity Interception - Custom Interception Behaviour
- var companies = methodReturn.ReturnValue as IEnumerable<ICompanyId>;
- List<string> filter = CompaniesVisibleToUser();
- methodReturn.ReturnValue = companies.Where(company =>
- filter.Contains(company.CompanyId)).ToList();
- public IList<ApplicationLayerDtos.EmployeeOverviewDto> GetEmployeesOverview()
- {
- return _appraisalService.GetEmployeesOverview();
- }