private List<TeamData> GetTeams() { using (Stream stream = File.OpenRead("teams.xlsx")) { TeamsExcelProvider excelProvider = new TeamsExcelProvider(); return excelProvider.GetTeams(stream); } }
private static List<TeamData> GetTeams(string excelPath) { using (Stream stream = File.OpenRead(excelPath)) { TeamsExcelProvider excelProvider = new TeamsExcelProvider(); return excelProvider.GetTeams(stream); } }