public int ImportStationRrus(string path) { var repo = new ExcelQueryFactory { FileName = path }; var excels = (from c in repo.Worksheet <StationRruExcel>("Sheet1") select c).ToList(); foreach (var stationRruExcel in excels) { StationRrus.Push(stationRruExcel); } return(StationRrus.Count); }