예제 #1
0
 public IEnumerable <User> FindByFirstName(string firstName)
 {
     _locker.EnterReadLock();
     try
     {
         return(_serviceStorage.FindAll(x => x.FirstName == firstName).ToList());
     }
     finally
     {
         _locker.ExitReadLock();
     }
 }
 public IEnumerable <User> FindByFirstName(string firstName)
 {
     return(_serviceStorage.FindAll(x => x.FirstName == firstName).ToList());
 }