예제 #1
0
        public void SaveSalesman(List <FileModel> listFile)
        {
            var list = new List <Salesman>();

            listFile.ForEach(file =>
            {
                Salesman salesman = ConvertFileToEntity(file);
                list.Add(salesman);
            });

            _salesmanRepository.InsertMany(list);
        }