Ejemplo n.º 1
0
        /// <summary>
        /// Create a new instance of Customer Management Service
        /// </summary>
        /// <param name="accountRepository">Associated CustomerRepository, intented to be resolved with DI</param>
        public ProudctAppService(IProudctRepository proudctRepository, IAccountRepository accountRepository) //the userinfo repository
        {
            if (proudctRepository == null)
            {
                throw new ArgumentNullException("proudctRepository");
            }

            if (accountRepository == null)
            {
                throw new ArgumentNullException("accountRepository");
            }

            _proudctRepository = proudctRepository;
            _accountRepository = accountRepository;
        }
Ejemplo n.º 2
0
 public ProductController(IProudctRepository proudctRepository)
 {
     _proudctRepository = proudctRepository;
 }