示例#1
0
 public void AddRecordToRepo(Gear gear)
 {
     if (gear == null)
     {
         throw new ArgumentNullException("Error: The argument is Null");
     }
     GearCollection.Add(gear);
 }
        public bool AddRecordToRepo(Gear gear)
        {
            if (gear == null)
            {
                throw new ArgumentNullException("Error: The argument is Null");
            }

            GearCollection.Add(gear);

            return(_editSucceeded);
        }