Esempio n. 1
0
 public AssetLog FindByName(string name)
 {
     var result = Entries.FirstOrDefault(e => e.Name.EqualsIgnoreCase(name));
     if (result == null)
     {
         result = new AssetLog(name);
         Entries.Add(result);
     }
     return result;
 }
Esempio n. 2
0
        public AssetLog FindByName(string name)
        {
            var result = Entries.FirstOrDefault(e => e.Name.EqualsIgnoreCase(name));

            if (result == null)
            {
                result = new AssetLog(name);
                Entries.Add(result);
            }
            return(result);
        }