public void Add(T entry, IGetId <T> idGetter) { if (idGetter == null) { throw new ArgumentNullException(nameof(idGetter)); } AddInternal(idGetter.GetId(entry), entry); }
public AccountController(IAccountApplication accountApplication, IAccountQueryService accountQueryService, IGetId getId) { _accountApplication = accountApplication; _accountQueryService = accountQueryService; _getId = getId; }