Before implementing save to textfiles

This commit is contained in:
2020-04-06 23:50:25 +02:00
parent d6f251c822
commit 137d012ab3
7 changed files with 123 additions and 8 deletions

View File

@ -12,6 +12,8 @@ namespace TrackerLibrary.DataAccess
private const string PrizesFile = "PrizeModels.csv";
private const string PeopleFile = "PersonModels.csv";
private const string TeamFile = "TeamModels.csv";
private const string TournamentFile = "TournamentModels.csv";
public PersonModel CreatePerson(PersonModel model)
{
@ -98,5 +100,10 @@ namespace TrackerLibrary.DataAccess
{
return TeamFile.FullFilePath().LoadFile().ConvertToTeamModels(PeopleFile);
}
public TournamentModel CreateTournament(TournamentModel model)
{
List<TournamentModel> tournaments = TournamentFile.FullFilePath().LoadFile().ConvertToTournamentModels();
}
}
}