public OrderController(IOrderControllerService orderControllerService) { if (orderControllerService == null) { throw new ArgumentNullException(nameof(orderControllerService)); } _orderControllerService = orderControllerService; }
public OrderController(IOrderControllerService service) { _service = service; }
public OrderController(IOrderControllerService orderControllerService) { _orderControllerService = orderControllerService ?? throw new ArgumentNullException(nameof(orderControllerService)); }
public OrderController(IOrderControllerService orderControllerService) { if (orderControllerService == null) throw new ArgumentNullException(nameof(orderControllerService)); _orderControllerService = orderControllerService; }