Пример #1
0
 public Jedi GetJedi(int?id = null, string name = null, string side = null)
 {
     return(StarWarsDB.GetJedis().SingleOrDefault(j =>
                                                  (id == null || j.Id == id) &&
                                                  (name == null || j.Name == name) &&
                                                  (side == null || j.Side == side)));
 }
Пример #2
0
 public IEnumerable <Jedi> GetJedis()
 {
     return(StarWarsDB.GetJedis());
 }