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)); }
public CustomerRepository(CustomersManagerContext customerManagerContext) { this.customersManagerContext = customerManagerContext ?? throw new ArgumentNullException(nameof(customerManagerContext)); }