예제 #1
0
 public bool Exists(string name)
 {
     Contract.Requires <ArgumentException>(!string.IsNullOrWhiteSpace(name));
     return(_repository.GetByName(name) != null);
 }
예제 #2
0
 public bool Exists(string name)
 {
     return(_repository.GetByName(name) != null);
 }