public IEnumerable <SalaryViewModel> GetAllWithEmployees() { List <Salary> domainModels = _salaryRepository.GetAllWithEmployees().ToList(); return(domainModels.Select(Mapper.Map <SalaryViewModel>).ToList()); }