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();
 }