示例#1
0
        public void Add(T entry, IGetId <T> idGetter)
        {
            if (idGetter == null)
            {
                throw new ArgumentNullException(nameof(idGetter));
            }

            AddInternal(idGetter.GetId(entry), entry);
        }
示例#2
0
 public AccountController(IAccountApplication accountApplication, IAccountQueryService accountQueryService, IGetId getId)
 {
     _accountApplication  = accountApplication;
     _accountQueryService = accountQueryService;
     _getId = getId;
 }