/// <summary> /// Adding collection of loans /// </summary> /// <param name="entities"></param> public void AddRange(List <LoanDTO> entities) { try { // call repository method to save collection of loans var collLoans = _mapper.Map <List <LoanDTO>, List <Loan> >(entities); _repository.AddRange(collLoans); } catch (Exception ex) { throw ex; } }