public void BatchUpdate(List <SalaryViewModel> salariesToUpdate) { if (salariesToUpdate != null && salariesToUpdate.Any()) { _salaryRepository.BatchUpdate(salariesToUpdate.Select(vm => Mapper.Map <Salary>(vm)).ToList()); } }