public void SaveSalesman(List <FileModel> listFile) { var list = new List <Salesman>(); listFile.ForEach(file => { Salesman salesman = ConvertFileToEntity(file); list.Add(salesman); }); _salesmanRepository.InsertMany(list); }
public void SaveSalesman(List <FileModel> listFile) { var list = new List <Salesman>(); listFile.ForEach(file => { Salesman salesman = ConvertFileToEntity(file); list.Add(salesman); }); _salesmanRepository.InsertMany(list); }