public override void Delete(PocoBook instance) { if (instance == null || string.IsNullOrEmpty(instance.Isbn)) { throw new ArgumentNullException(nameof(instance), "Book or Isbn cannot be null or empty."); } Books.DeleteOne(x => x.Isbn == instance.Isbn); }