public List <Loan> GetLoans(string filePath) { ICSVWrapper <Loan> csvWrapper = new CSVWrapper <Loan>(); var loans = csvWrapper.ReadCSV(filePath); return(loans); }
public List <Facility> GetFacilities(string filePath) { ICSVWrapper <Facility> csvWrapper = new CSVWrapper <Facility>(); var facilities = csvWrapper.ReadCSV(filePath); return(facilities); }
public List <Bank> GetBanks(string filePath) { ICSVWrapper <Bank> csvWrapper = new CSVWrapper <Bank>(); var banks = csvWrapper.ReadCSV(filePath); return(banks); }
public List <Covenant> GetCovenants(string filePath) { ICSVWrapper <Covenant> csvWrapper = new CSVWrapper <Covenant>(); var covenants = csvWrapper.ReadCSV(filePath); return(covenants); }
public void WriteYieldsToCSV(List <Yield> yields, string filePath) { foreach (var yield in yields) { yield.ExpectedYield = Math.Round(yield.ExpectedYield); } ICSVWrapper <Yield> csvHelper = new CSVWrapper <Yield>(); csvHelper.WriteToCSV(yields, filePath); }
public void WriteAssignmentsToCSV(List <Assignment> assignments, string filePath) { ICSVWrapper <Assignment> csvHelper = new CSVWrapper <Assignment>(); csvHelper.WriteToCSV(assignments, filePath); }