Example #1
0
 public AuthServiceManager(EcommerceContext ecommerceContext, ICartServiceManager cartServiceManager,
                           ICustomerServiceManager customerServiceManager, IOptions <AppSettings> appSettings)
 {
     _ecommerceContext       = ecommerceContext;
     _cartServiceManager     = cartServiceManager;
     _customerServiceManager = customerServiceManager;
     _appSettings            = appSettings.Value;
 }
Example #2
0
 public CustomerViewModel(CustomerDto customerDto)
 {
     CustomerId = customerDto.CustomerId;
     _firstName = customerDto.FirstName;
     _lastName = customerDto.LastName;
     _originalValue = (CustomerViewModel)MemberwiseClone();
     _orderServiceManager = ServiceProvider.Instance.Get<IOrderServiceManager>();
     _customerServiceManager = ServiceProvider.Instance.Get<ICustomerServiceManager>();
 }
Example #3
0
 public CustomerController(ICustomerServiceManager customerServiceManager, IMapper mapper)
 {
     _customerServiceManager = customerServiceManager;
     _mapper = mapper;
 }
Example #4
0
 public CustomerViewModel(IOrderServiceManager orderServiceManager, ICustomerServiceManager customerServiceManager)
 {
     _orderServiceManager = orderServiceManager;
     _customerServiceManager = customerServiceManager;
 }
Example #5
0
 public CustomerListViewModel(ICustomerServiceManager customerServiceManager)
 {
     _customerServiceManager = customerServiceManager;
     GetCustomers();
 }