private void AddLevel2(ILevelAdd <Level2> repository) { //repository.Add(new Level2 { LevelId = 201, Name = "Level2" }); }
private void AddLevel3(ILevelAdd <Level3> repository) { //repository.Add(new Level3 { LevelId = 301, Name = "Level3" }); }
//interface ILevelAdd<in T> private void AddLevel1(ILevelAdd <Level1> repository) { //repository.Add(new Level1 { LevelId = 101, Name = "Level1" }); }