public void Delete(int id) { if (id == 0) { throw new ArgumentException("The id can't be zero."); } repository.Remove(id); }