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()); }