Пример #1
0
 private void AddLevel2(ILevelAdd <Level2> repository)
 {
     //repository.Add(new Level2 { LevelId = 201, Name = "Level2" });
 }
Пример #2
0
 private void AddLevel3(ILevelAdd <Level3> repository)
 {
     //repository.Add(new Level3 { LevelId = 301, Name = "Level3" });
 }
Пример #3
0
 //interface ILevelAdd<in T>
 private void AddLevel1(ILevelAdd <Level1> repository)
 {
     //repository.Add(new Level1 { LevelId = 101, Name = "Level1" });
 }