Example #1
0
        public IEnumerable <SalaryViewModel> BatchInsert(List <SalaryViewModel> salariesToUpdate)
        {
            if (salariesToUpdate != null && salariesToUpdate.Any())
            {
                _salaryRepository.BatchInsert(salariesToUpdate.Select(vm => Mapper.Map <Salary>(vm)).ToList());
            }

            return(salariesToUpdate);
        }