Skip to content

Commit

Permalink
Respect new interfaces in Console app
Browse files Browse the repository at this point in the history
  • Loading branch information
frostieDE committed Apr 5, 2020
1 parent 5e0797c commit 9dd6a7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SchildExport.Console/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static void Main(string[] args)

case 3:
WriteLine("Exporting student privacies");
WriteJson(GetResult(schildExport.GetStudentPrivaciesAsync()));
WriteJson(GetResult(schildExport.GetStudentPrivaciesAsync(GetResult(schildExport.GetStudentsAsync()))));
break;

case 4:
Expand All @@ -81,7 +81,7 @@ static void Main(string[] args)
WriteLine($"Acamdemic year: {info.CurrentYear}");
WriteLine($"Acamdemic year section: {info.CurrentSection}");

WriteJson(GetResult(schildExport.GetStudyGroupsAsync(info.CurrentYear.Value, info.CurrentSection.Value)));
WriteJson(GetResult(schildExport.GetStudyGroupsAsync(GetResult(schildExport.GetStudentsAsync()), info.CurrentYear.Value, info.CurrentSection.Value)));
break;

case 8:
Expand All @@ -90,7 +90,7 @@ static void Main(string[] args)
WriteLine($"Acamdemic year: {info.CurrentYear}");
WriteLine($"Acamdemic year section: {info.CurrentSection}");

WriteJson(GetResult(schildExport.GetTuitionsAsync(info.CurrentYear.Value, info.CurrentSection.Value)));
WriteJson(GetResult(schildExport.GetTuitionsAsync(GetResult(schildExport.GetStudentsAsync()), info.CurrentYear.Value, info.CurrentSection.Value)));
break;

case 9:
Expand Down

0 comments on commit 9dd6a7c

Please sign in to comment.