public OrderController(IObjectFactory objectFactory) { _userViewService = objectFactory.Create <IUserViewService>(); _orderModifyService = objectFactory.Create <IOrderModifyService>(); _orderViewService = objectFactory.Create <IOrderViewService>(); _orderTypeViewService = objectFactory.Create <IOrderTypeViewService>(); }
public CartController(IObjectFactory objectFactory) { _productViewService = objectFactory.Create <IProductViewService>(); _orderTypeViewService = objectFactory.Create <IOrderTypeViewService>(); _orderModifyService = objectFactory.Create <IOrderModifyService>(); _orderViewService = objectFactory.Create <IOrderViewService>(); _userViewService = objectFactory.Create <IUserViewService>(); _userModifyService = objectFactory.Create <IUserModifyService>(); cart = new Cart(); currentUser = new UserViewModel(); }
public RegistrationController(ICommandBus commandBus, IOrderViewService orderDao, IConferenceViewService conferenceDao) : base(conferenceDao) { this.commandBus = commandBus; this.orderDao = orderDao; }
public OrderController(IOrderViewService orderViewService, IOrderService orderService) { _orderViewService = orderViewService; _orderService = orderService; }
public OrderController(IConferenceViewService conferenceDao, IOrderViewService orderDao, ICommandBus bus) : base(conferenceDao) { this.orderDao = orderDao; this.bus = bus; }