Beispiel #1
0
 public CustomersManagerController(CustomersManagerContext context, ICMCommercial commercial, ICMUser user)
 {
     this.commercial = commercial ?? throw new ArgumentNullException(nameof(commercial));
     this.user       = user ?? throw new ArgumentNullException(nameof(user));
     this.context    = context ?? throw new ArgumentNullException(nameof(context));
 }
Beispiel #2
0
 public CustomerRepository(CustomersManagerContext customerManagerContext)
 {
     this.customersManagerContext = customerManagerContext ?? throw new ArgumentNullException(nameof(customerManagerContext));
 }