public EquipmentController()
        {
            IKernel webApiDIResolver = WebApiDIResolver.GetDIResolver();

            EquipmentBLRepository = webApiDIResolver.Get <IBusinessLogicRepository <EquipmentDTO> >();
            configsGenerator      = webApiDIResolver.Get <IViewModelMappingConfigsGenerator>();
        }
        public RoomsController()
        {
            IKernel webApiDIResolver = WebApiDIResolver.GetDIResolver();

            RoomsBLRepository = webApiDIResolver.Get <IBusinessLogicRepository <RoomDTO> >();
            configsGenerator  = webApiDIResolver.Get <IViewModelMappingConfigsGenerator>();
        }
Пример #3
0
        public OrdersController()
        {
            IKernel webApiDIResolver = WebApiDIResolver.GetDIResolver();

            OrdersBLRepository = webApiDIResolver.Get <IBusinessLogicRepository <OrderDTO> >();
            orderService       = webApiDIResolver.Get <IOrderService>();
            configsGenerator   = webApiDIResolver.Get <IViewModelMappingConfigsGenerator>();
        }