-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
VGA
committed
Feb 19, 2021
1 parent
5c523a2
commit 28022b3
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,9 +22,9 @@ public static class SchoolManager | |
|
||
static SchoolManager() | ||
{ | ||
levels.Add(new Level(Constants.LEVEL_INICIAL, new List<string>() { "julia.laplace" })); | ||
levels.Add(new Level(Constants.LEVEL_PRIMARIA, new List<string>() { "monica.bassagaisteguy", "maria.veppo" })); | ||
levels.Add(new Level(Constants.LEVEL_SECUNDARIA, new List<string>() { "mariana.dellape", "maria.lascano" })); | ||
levels.Add(new Level(Constants.LEVEL_INICIAL, new List<string>() { "julia.laplace@ijmecitybell.edu.ar" })); | ||
levels.Add(new Level(Constants.LEVEL_PRIMARIA, new List<string>() { "monica.bassagaisteguy@ijmecitybell.edu.ar", "maria.veppo@ijmecitybell.edu.ar", "[email protected]" })); | ||
levels.Add(new Level(Constants.LEVEL_SECUNDARIA, new List<string>() { "mariana.dellape@ijmecitybell.edu.ar", "maria.lascano@ijmecitybell.edu.ar", "[email protected]" })); | ||
|
||
// Inicial level | ||
sections.Add(new Section("Amarilla {0} {1}", Constants.LEVEL_INICIAL, new List<string> { Constants.GRADE_FIRST }, allDivisions)); | ||
|
@@ -118,6 +118,10 @@ static SchoolManager() | |
// TODO IJME: missing ed. fisica 5to A? (there are 2, should be 3, one per trimester) | ||
} | ||
|
||
static public Level GetLevel(string level) | ||
{ | ||
return levels.Where(p => string.Equals(level, p.Id, StringComparison.InvariantCultureIgnoreCase)).Single(); | ||
} | ||
static public IEnumerable<Section> GetSections(string level) | ||
{ | ||
return sections.Where(p => string.Equals(level, p.Level, StringComparison.InvariantCultureIgnoreCase)); | ||
|