public void AddWarrant(Warrant warrant) { warrant.LocalId = ++LastWarrantId; Warrants.Add(warrant); }