Example #1
0
        private static void DefaultConfigure()
        {
            //AutoMapper
            var mapConfig = new MapperConfiguration(cfg =>
            {
                foreach (var c in MapperConfigs)
                {
                    c.Invoke(cfg);
                }
            });

            G.Mapper = mapConfig.CreateMapper();

            //IoContainer
            G.TContainer = new TContainer();
            G.TContainer.RegisterType <IAnswerRepository, AnswerRepository>();
            G.TContainer.RegisterType <ICommentRepository, CommentRepository>();
            G.TContainer.RegisterType <IPostRepository, PostRepository>();
            G.TContainer.RegisterType <IQuestionRepository, QuestionRepository>();
            G.TContainer.RegisterType <IUserRepository, UserRepository>();
            G.TContainer.RegisterType <IAnswerService, AnswerService>();
            G.TContainer.RegisterType <ICommentService, CommentService>();
            G.TContainer.RegisterType <IPostService, PostService>();
            G.TContainer.RegisterType <IQuestionService, QuestionService>();
            G.TContainer.RegisterType <IUserService, UserService>();
        }
Example #2
0
 private static void ConfigureIoContainer()
 {
     //IoContainer
     G.TContainer = new TContainer();
     G.TContainer.RegisterRequestScopeHandlerModule();
     G.TContainer.RegisterType <IUnitOfWork, UnitOfWork>();
     G.TContainer.RegisterType <IAffliatorCashbackDetailRepository, AffliatorCashbackDetailRepository>();
     G.TContainer.RegisterType <IAppActionRepository, AppActionRepository>();
     G.TContainer.RegisterType <ICampaignRepository, CampaignRepository>();
     G.TContainer.RegisterType <ICustomerRepository, CustomerRepository>();
     G.TContainer.RegisterType <ICustomerCashbackDetailRepository, CustomerCashbackDetailRepository>();
     G.TContainer.RegisterType <ICustomerSegmentRepository, CustomerSegmentRepository>();
     G.TContainer.RegisterType <IGiftAppliedDetailRepository, GiftAppliedDetailRepository>();
     G.TContainer.RegisterType <IGiftDetailRepository, GiftDetailRepository>();
     G.TContainer.RegisterType <IOrderRepository, OrderRepository>();
     G.TContainer.RegisterType <IOrderItemRepository, OrderItemRepository>();
     G.TContainer.RegisterType <IPartnerRepository, PartnerRepository>();
     G.TContainer.RegisterType <IProductRepository, ProductRepository>();
     G.TContainer.RegisterType <IPromotionRepository, PromotionRepository>();
     G.TContainer.RegisterType <IPromotionAppliedDetailRepository, PromotionAppliedDetailRepository>();
     G.TContainer.RegisterType <IPromotionApplySituationRepository, PromotionApplySituationRepository>();
     G.TContainer.RegisterType <IPromotionDetailRepository, PromotionDetailRepository>();
     G.TContainer.RegisterType <IPromotionStoreRuleRepository, PromotionStoreRuleRepository>();
     G.TContainer.RegisterType <IPromotionTypeRepository, PromotionTypeRepository>();
     G.TContainer.RegisterType <IRedemptionRepository, RedemptionRepository>();
     G.TContainer.RegisterType <IRedemptionRollbackRepository, RedemptionRollbackRepository>();
     G.TContainer.RegisterType <ISegmentRepository, SegmentRepository>();
     G.TContainer.RegisterType <IStoreRepository, StoreRepository>();
     G.TContainer.RegisterType <IValidationRuleRepository, ValidationRuleRepository>();
     G.TContainer.RegisterType <IVoucherRepository, VoucherRepository>();
     G.TContainer.RegisterType <IVoucherConfigRepository, VoucherConfigRepository>();
     G.TContainer.RegisterType <IAffliatorCashbackDetailService, AffliatorCashbackDetailService>();
     G.TContainer.RegisterType <IAppActionService, AppActionService>();
     G.TContainer.RegisterType <ICampaignService, CampaignService>();
     G.TContainer.RegisterType <ICustomerService, CustomerService>();
     G.TContainer.RegisterType <ICustomerCashbackDetailService, CustomerCashbackDetailService>();
     G.TContainer.RegisterType <ICustomerSegmentService, CustomerSegmentService>();
     G.TContainer.RegisterType <IGiftAppliedDetailService, GiftAppliedDetailService>();
     G.TContainer.RegisterType <IGiftDetailService, GiftDetailService>();
     G.TContainer.RegisterType <IOrderService, OrderService>();
     G.TContainer.RegisterType <IOrderItemService, OrderItemService>();
     G.TContainer.RegisterType <IPartnerService, PartnerService>();
     G.TContainer.RegisterType <IProductService, ProductService>();
     G.TContainer.RegisterType <IPromotionService, PromotionService>();
     G.TContainer.RegisterType <IPromotionAppliedDetailService, PromotionAppliedDetailService>();
     G.TContainer.RegisterType <IPromotionApplySituationService, PromotionApplySituationService>();
     G.TContainer.RegisterType <IPromotionDetailService, PromotionDetailService>();
     G.TContainer.RegisterType <IPromotionStoreRuleService, PromotionStoreRuleService>();
     G.TContainer.RegisterType <IPromotionTypeService, PromotionTypeService>();
     G.TContainer.RegisterType <IRedemptionService, RedemptionService>();
     G.TContainer.RegisterType <IRedemptionRollbackService, RedemptionRollbackService>();
     G.TContainer.RegisterType <ISegmentService, SegmentService>();
     G.TContainer.RegisterType <IStoreService, StoreService>();
     G.TContainer.RegisterType <IValidationRuleService, ValidationRuleService>();
     G.TContainer.RegisterType <IVoucherService, VoucherService>();
     G.TContainer.RegisterType <IVoucherConfigService, VoucherConfigService>();
 }
 public UnitOfWork(ITContainer scope)
 {
     Scope        = scope;
     Context      = new passioTestEntities();
     ResourcePool = new Dictionary <Type, object>();
 }
Example #4
0
 private static void ConfigureIoContainer()
 {
     //IoContainer
     Builder.RegisterRequestScopeHandlerModule();
     Builder.RegisterType <IUnitOfWork, UnitOfWork>();
     Builder.RegisterType <IC__MigrationHistoryRepository, C__MigrationHistoryRepository>();
     Builder.RegisterType <IC_TransactionIndex_2244ceaa_24f5_4fde_bd5f_baf8ea08cdc4Repository, C_TransactionIndex_2244ceaa_24f5_4fde_bd5f_baf8ea08cdc4Repository>();
     Builder.RegisterType <IAccountRepository, AccountRepository>();
     Builder.RegisterType <IApplicationRepository, ApplicationRepository>();
     Builder.RegisterType <IAreaDeliveryRepository, AreaDeliveryRepository>();
     Builder.RegisterType <IArticleRepository, ArticleRepository>();
     Builder.RegisterType <IAspNetRoleRepository, AspNetRoleRepository>();
     Builder.RegisterType <IAspNetUserClaimRepository, AspNetUserClaimRepository>();
     Builder.RegisterType <IAspNetUserLoginRepository, AspNetUserLoginRepository>();
     Builder.RegisterType <IAspNetUserRepository, AspNetUserRepository>();
     Builder.RegisterType <IAttendanceRepository, AttendanceRepository>();
     Builder.RegisterType <IAttendanceDateRepository, AttendanceDateRepository>();
     Builder.RegisterType <IBlogCategoryRepository, BlogCategoryRepository>();
     Builder.RegisterType <IBlogPostRepository, BlogPostRepository>();
     Builder.RegisterType <IBlogPostCollectionRepository, BlogPostCollectionRepository>();
     Builder.RegisterType <IBlogPostCollectionItemRepository, BlogPostCollectionItemRepository>();
     Builder.RegisterType <IBlogPostCollectionItemMappingRepository, BlogPostCollectionItemMappingRepository>();
     Builder.RegisterType <IBlogPostImageRepository, BlogPostImageRepository>();
     Builder.RegisterType <IBrandRepository, BrandRepository>();
     Builder.RegisterType <ICategoryExtraRepository, CategoryExtraRepository>();
     Builder.RegisterType <ICategoryExtraMappingRepository, CategoryExtraMappingRepository>();
     Builder.RegisterType <ICheckFingerRepository, CheckFingerRepository>();
     Builder.RegisterType <IContactRepository, ContactRepository>();
     Builder.RegisterType <ICostRepository, CostRepository>();
     Builder.RegisterType <ICostCategoryRepository, CostCategoryRepository>();
     Builder.RegisterType <ICostInventoryMappingRepository, CostInventoryMappingRepository>();
     Builder.RegisterType <ICouponRepository, CouponRepository>();
     Builder.RegisterType <ICouponCampaignRepository, CouponCampaignRepository>();
     Builder.RegisterType <ICouponProviderRepository, CouponProviderRepository>();
     Builder.RegisterType <ICustomerRepository, CustomerRepository>();
     Builder.RegisterType <ICustomerFilterRepository, CustomerFilterRepository>();
     Builder.RegisterType <ICustomerProductMappingRepository, CustomerProductMappingRepository>();
     Builder.RegisterType <ICustomerStoreReportMappingRepository, CustomerStoreReportMappingRepository>();
     Builder.RegisterType <ICustomerTypeRepository, CustomerTypeRepository>();
     Builder.RegisterType <IDateHotelReportRepository, DateHotelReportRepository>();
     Builder.RegisterType <IDateProductRepository, DateProductRepository>();
     Builder.RegisterType <IDateProductItemRepository, DateProductItemRepository>();
     Builder.RegisterType <IDateReportRepository, DateReportRepository>();
     Builder.RegisterType <IDayModeRepository, DayModeRepository>();
     Builder.RegisterType <IDeliveryInfoRepository, DeliveryInfoRepository>();
     Builder.RegisterType <IDeliveryInformationRepository, DeliveryInformationRepository>();
     Builder.RegisterType <IDeviceRepository, DeviceRepository>();
     Builder.RegisterType <IDistrictRepository, DistrictRepository>();
     Builder.RegisterType <IEmployeeRepository, EmployeeRepository>();
     Builder.RegisterType <IEmployeeFingerRepository, EmployeeFingerRepository>();
     Builder.RegisterType <IEmployeeGroupRepository, EmployeeGroupRepository>();
     Builder.RegisterType <IEmployeeInStoreRepository, EmployeeInStoreRepository>();
     Builder.RegisterType <IEventLocationRepository, EventLocationRepository>();
     Builder.RegisterType <IFavoritedRepository, FavoritedRepository>();
     Builder.RegisterType <IFingerScanMachineRepository, FingerScanMachineRepository>();
     Builder.RegisterType <IGroupRepository, GroupRepository>();
     Builder.RegisterType <IGuestRepository, GuestRepository>();
     Builder.RegisterType <IImageCollectionRepository, ImageCollectionRepository>();
     Builder.RegisterType <IImageCollectionItemRepository, ImageCollectionItemRepository>();
     Builder.RegisterType <IInventoryCheckingRepository, InventoryCheckingRepository>();
     Builder.RegisterType <IInventoryCheckingItemRepository, InventoryCheckingItemRepository>();
     Builder.RegisterType <IInventoryDateReportRepository, InventoryDateReportRepository>();
     Builder.RegisterType <IInventoryDateReportItemRepository, InventoryDateReportItemRepository>();
     Builder.RegisterType <IInventoryReceiptRepository, InventoryReceiptRepository>();
     Builder.RegisterType <IInventoryReceiptItemRepository, InventoryReceiptItemRepository>();
     Builder.RegisterType <IInventoryTemplateReportRepository, InventoryTemplateReportRepository>();
     Builder.RegisterType <ILanguageRepository, LanguageRepository>();
     Builder.RegisterType <ILanguageKeyRepository, LanguageKeyRepository>();
     Builder.RegisterType <ILanguageValueRepository, LanguageValueRepository>();
     Builder.RegisterType <IMachineConnectRepository, MachineConnectRepository>();
     Builder.RegisterType <IMembershipCardRepository, MembershipCardRepository>();
     Builder.RegisterType <IMembershipCardTypeRepository, MembershipCardTypeRepository>();
     Builder.RegisterType <IMenuRepository, MenuRepository>();
     Builder.RegisterType <INotificationRepository, NotificationRepository>();
     Builder.RegisterType <IOrderRepository, OrderRepository>();
     Builder.RegisterType <IOrderDetailRepository, OrderDetailRepository>();
     Builder.RegisterType <IOrderDetailPromotionMappingRepository, OrderDetailPromotionMappingRepository>();
     Builder.RegisterType <IOrderFeeItemRepository, OrderFeeItemRepository>();
     Builder.RegisterType <IOrderGroupRepository, OrderGroupRepository>();
     Builder.RegisterType <IOrderPromotionMappingRepository, OrderPromotionMappingRepository>();
     Builder.RegisterType <IPartnerRepository, PartnerRepository>();
     Builder.RegisterType <IPartnerMappingRepository, PartnerMappingRepository>();
     Builder.RegisterType <IPaymentRepository, PaymentRepository>();
     Builder.RegisterType <IPaymentPartnerRepository, PaymentPartnerRepository>();
     Builder.RegisterType <IPaymentReportRepository, PaymentReportRepository>();
     Builder.RegisterType <IPayrollCategoryRepository, PayrollCategoryRepository>();
     Builder.RegisterType <IPayrollDetailRepository, PayrollDetailRepository>();
     Builder.RegisterType <IPayrollPeriodRepository, PayrollPeriodRepository>();
     Builder.RegisterType <IPaySlipRepository, PaySlipRepository>();
     Builder.RegisterType <IPayslipAttributeRepository, PayslipAttributeRepository>();
     Builder.RegisterType <IPayslipAttributeMappingRepository, PayslipAttributeMappingRepository>();
     Builder.RegisterType <IPaySlipItemRepository, PaySlipItemRepository>();
     Builder.RegisterType <IPaySlipTemplateRepository, PaySlipTemplateRepository>();
     Builder.RegisterType <IPosRepository, PosRepository>();
     Builder.RegisterType <IPosConfigRepository, PosConfigRepository>();
     Builder.RegisterType <IPosFileRepository, PosFileRepository>();
     Builder.RegisterType <IPriceAdditionRepository, PriceAdditionRepository>();
     Builder.RegisterType <IPriceGroupRepository, PriceGroupRepository>();
     Builder.RegisterType <IPriceNightRepository, PriceNightRepository>();
     Builder.RegisterType <IProductRepository, ProductRepository>();
     Builder.RegisterType <IProductCategoryRepository, ProductCategoryRepository>();
     Builder.RegisterType <IProductCollectionRepository, ProductCollectionRepository>();
     Builder.RegisterType <IProductCollectionItemMappingRepository, ProductCollectionItemMappingRepository>();
     Builder.RegisterType <IProductComboDetailRepository, ProductComboDetailRepository>();
     Builder.RegisterType <IProductDetailMappingRepository, ProductDetailMappingRepository>();
     Builder.RegisterType <IProductImageRepository, ProductImageRepository>();
     Builder.RegisterType <IProductImageCollectionRepository, ProductImageCollectionRepository>();
     Builder.RegisterType <IProductImageCollectionItemMappingRepository, ProductImageCollectionItemMappingRepository>();
     Builder.RegisterType <IProductItemRepository, ProductItemRepository>();
     Builder.RegisterType <IProductItemCategoryRepository, ProductItemCategoryRepository>();
     Builder.RegisterType <IProductItemCompositionMappingRepository, ProductItemCompositionMappingRepository>();
     Builder.RegisterType <IProductSpecificationRepository, ProductSpecificationRepository>();
     Builder.RegisterType <IProfileRepository, ProfileRepository>();
     Builder.RegisterType <IPromotionRepository, PromotionRepository>();
     Builder.RegisterType <IPromotionDetailRepository, PromotionDetailRepository>();
     Builder.RegisterType <IPromotionStoreMappingRepository, PromotionStoreMappingRepository>();
     Builder.RegisterType <IProviderRepository, ProviderRepository>();
     Builder.RegisterType <IProviderProductItemMappingRepository, ProviderProductItemMappingRepository>();
     Builder.RegisterType <IProvinceRepository, ProvinceRepository>();
     Builder.RegisterType <IRatingProductRepository, RatingProductRepository>();
     Builder.RegisterType <IRatingStarRepository, RatingStarRepository>();
     Builder.RegisterType <IReportTrackingRepository, ReportTrackingRepository>();
     Builder.RegisterType <IRoleRepository, RoleRepository>();
     Builder.RegisterType <IRoomRepository, RoomRepository>();
     Builder.RegisterType <IRoomCategoryRepository, RoomCategoryRepository>();
     Builder.RegisterType <IRoomCategoryPriceGroupMappingRepository, RoomCategoryPriceGroupMappingRepository>();
     Builder.RegisterType <IRoomFloorRepository, RoomFloorRepository>();
     Builder.RegisterType <ISalaryHourRepository, SalaryHourRepository>();
     Builder.RegisterType <ISalaryRuleRepository, SalaryRuleRepository>();
     Builder.RegisterType <IStoreRepository, StoreRepository>();
     Builder.RegisterType <IStoreDomainRepository, StoreDomainRepository>();
     Builder.RegisterType <IStoreGroupRepository, StoreGroupRepository>();
     Builder.RegisterType <IStoreGroupMappingRepository, StoreGroupMappingRepository>();
     Builder.RegisterType <IStoreThemeRepository, StoreThemeRepository>();
     Builder.RegisterType <IStoreUserRepository, StoreUserRepository>();
     Builder.RegisterType <IStoreWebRouteRepository, StoreWebRouteRepository>();
     Builder.RegisterType <IStoreWebRouteModelRepository, StoreWebRouteModelRepository>();
     Builder.RegisterType <IStoreWebSettingRepository, StoreWebSettingRepository>();
     Builder.RegisterType <IStoreWebViewCounterRepository, StoreWebViewCounterRepository>();
     Builder.RegisterType <ISubRentGroupRepository, SubRentGroupRepository>();
     Builder.RegisterType <IsysdiagramRepository, sysdiagramRepository>();
     Builder.RegisterType <ISystemPartnerMappingRepository, SystemPartnerMappingRepository>();
     Builder.RegisterType <ITagRepository, TagRepository>();
     Builder.RegisterType <ITagMappingRepository, TagMappingRepository>();
     Builder.RegisterType <ITemplateDetailMappingRepository, TemplateDetailMappingRepository>();
     Builder.RegisterType <ITemplateReportProductItemMappingRepository, TemplateReportProductItemMappingRepository>();
     Builder.RegisterType <ITemplateRuleMappingRepository, TemplateRuleMappingRepository>();
     Builder.RegisterType <IThemeRepository, ThemeRepository>();
     Builder.RegisterType <ITimeFrameRepository, TimeFrameRepository>();
     Builder.RegisterType <ITimeModeRuleRepository, TimeModeRuleRepository>();
     Builder.RegisterType <ITimeModeTypeRepository, TimeModeTypeRepository>();
     Builder.RegisterType <ITokenUserRepository, TokenUserRepository>();
     Builder.RegisterType <ITransactionRepository, TransactionRepository>();
     Builder.RegisterType <IUserRepository, UserRepository>();
     Builder.RegisterType <IVATOrderRepository, VATOrderRepository>();
     Builder.RegisterType <IVATOrderMappingRepository, VATOrderMappingRepository>();
     Builder.RegisterType <IViewCounterRepository, ViewCounterRepository>();
     Builder.RegisterType <IVoucherRepository, VoucherRepository>();
     Builder.RegisterType <IWardRepository, WardRepository>();
     Builder.RegisterType <IWebCustomerFeedbackRepository, WebCustomerFeedbackRepository>();
     Builder.RegisterType <IWebElementRepository, WebElementRepository>();
     Builder.RegisterType <IWebElementTypeRepository, WebElementTypeRepository>();
     Builder.RegisterType <IWebMenuRepository, WebMenuRepository>();
     Builder.RegisterType <IWebMenuCategoryRepository, WebMenuCategoryRepository>();
     Builder.RegisterType <IWebPageRepository, WebPageRepository>();
     Builder.RegisterType <ICustomerFeedbackRepository, CustomerFeedbackRepository>();
     Builder.RegisterType <IC__MigrationHistoryService, C__MigrationHistoryService>();
     Builder.RegisterType <IC_TransactionIndex_2244ceaa_24f5_4fde_bd5f_baf8ea08cdc4Service, C_TransactionIndex_2244ceaa_24f5_4fde_bd5f_baf8ea08cdc4Service>();
     Builder.RegisterType <IAccountService, AccountService>();
     Builder.RegisterType <IApplicationService, ApplicationService>();
     Builder.RegisterType <IAreaDeliveryService, AreaDeliveryService>();
     Builder.RegisterType <IArticleService, ArticleService>();
     Builder.RegisterType <IAspNetRoleService, AspNetRoleService>();
     Builder.RegisterType <IAspNetUserClaimService, AspNetUserClaimService>();
     Builder.RegisterType <IAspNetUserLoginService, AspNetUserLoginService>();
     Builder.RegisterType <IAspNetUserService, AspNetUserService>();
     Builder.RegisterType <IAttendanceService, AttendanceService>();
     Builder.RegisterType <IAttendanceDateService, AttendanceDateService>();
     Builder.RegisterType <IBlogCategoryService, BlogCategoryService>();
     Builder.RegisterType <IBlogPostService, BlogPostService>();
     Builder.RegisterType <IBlogPostCollectionService, BlogPostCollectionService>();
     Builder.RegisterType <IBlogPostCollectionItemService, BlogPostCollectionItemService>();
     Builder.RegisterType <IBlogPostCollectionItemMappingService, BlogPostCollectionItemMappingService>();
     Builder.RegisterType <IBlogPostImageService, BlogPostImageService>();
     Builder.RegisterType <IBrandService, BrandService>();
     Builder.RegisterType <ICategoryExtraService, CategoryExtraService>();
     Builder.RegisterType <ICategoryExtraMappingService, CategoryExtraMappingService>();
     Builder.RegisterType <ICheckFingerService, CheckFingerService>();
     Builder.RegisterType <IContactService, ContactService>();
     Builder.RegisterType <ICostService, CostService>();
     Builder.RegisterType <ICostCategoryService, CostCategoryService>();
     Builder.RegisterType <ICostInventoryMappingService, CostInventoryMappingService>();
     Builder.RegisterType <ICouponService, CouponService>();
     Builder.RegisterType <ICouponCampaignService, CouponCampaignService>();
     Builder.RegisterType <ICouponProviderService, CouponProviderService>();
     Builder.RegisterType <ICustomerService, CustomerService>();
     Builder.RegisterType <ICustomerFilterService, CustomerFilterService>();
     Builder.RegisterType <ICustomerProductMappingService, CustomerProductMappingService>();
     Builder.RegisterType <ICustomerStoreReportMappingService, CustomerStoreReportMappingService>();
     Builder.RegisterType <ICustomerTypeService, CustomerTypeService>();
     Builder.RegisterType <IDateHotelReportService, DateHotelReportService>();
     Builder.RegisterType <IDateProductService, DateProductService>();
     Builder.RegisterType <IDateProductItemService, DateProductItemService>();
     Builder.RegisterType <IDateReportService, DateReportService>();
     Builder.RegisterType <IDayModeService, DayModeService>();
     Builder.RegisterType <IDeliveryInfoService, DeliveryInfoService>();
     Builder.RegisterType <IDeliveryInformationService, DeliveryInformationService>();
     Builder.RegisterType <IDeviceService, DeviceService>();
     Builder.RegisterType <IDistrictService, DistrictService>();
     Builder.RegisterType <IEmployeeService, EmployeeService>();
     Builder.RegisterType <IEmployeeFingerService, EmployeeFingerService>();
     Builder.RegisterType <IEmployeeGroupService, EmployeeGroupService>();
     Builder.RegisterType <IEmployeeInStoreService, EmployeeInStoreService>();
     Builder.RegisterType <IEventLocationService, EventLocationService>();
     Builder.RegisterType <IFavoritedService, FavoritedService>();
     Builder.RegisterType <IFingerScanMachineService, FingerScanMachineService>();
     Builder.RegisterType <IGroupService, GroupService>();
     Builder.RegisterType <IGuestService, GuestService>();
     Builder.RegisterType <IImageCollectionService, ImageCollectionService>();
     Builder.RegisterType <IImageCollectionItemService, ImageCollectionItemService>();
     Builder.RegisterType <IInventoryCheckingService, InventoryCheckingService>();
     Builder.RegisterType <IInventoryCheckingItemService, InventoryCheckingItemService>();
     Builder.RegisterType <IInventoryDateReportService, InventoryDateReportService>();
     Builder.RegisterType <IInventoryDateReportItemService, InventoryDateReportItemService>();
     Builder.RegisterType <IInventoryReceiptService, InventoryReceiptService>();
     Builder.RegisterType <IInventoryReceiptItemService, InventoryReceiptItemService>();
     Builder.RegisterType <IInventoryTemplateReportService, InventoryTemplateReportService>();
     Builder.RegisterType <ILanguageService, LanguageService>();
     Builder.RegisterType <ILanguageKeyService, LanguageKeyService>();
     Builder.RegisterType <ILanguageValueService, LanguageValueService>();
     Builder.RegisterType <IMachineConnectService, MachineConnectService>();
     Builder.RegisterType <IMembershipCardService, MembershipCardService>();
     Builder.RegisterType <IMembershipCardTypeService, MembershipCardTypeService>();
     Builder.RegisterType <IMenuService, MenuService>();
     Builder.RegisterType <INotificationService, NotificationService>();
     Builder.RegisterType <IOrderService, OrderService>();
     Builder.RegisterType <IOrderDetailService, OrderDetailService>();
     Builder.RegisterType <IOrderDetailPromotionMappingService, OrderDetailPromotionMappingService>();
     Builder.RegisterType <IOrderFeeItemService, OrderFeeItemService>();
     Builder.RegisterType <IOrderGroupService, OrderGroupService>();
     Builder.RegisterType <IOrderPromotionMappingService, OrderPromotionMappingService>();
     Builder.RegisterType <IPartnerService, PartnerService>();
     Builder.RegisterType <IPartnerMappingService, PartnerMappingService>();
     Builder.RegisterType <IPaymentService, PaymentService>();
     Builder.RegisterType <IPaymentPartnerService, PaymentPartnerService>();
     Builder.RegisterType <IPaymentReportService, PaymentReportService>();
     Builder.RegisterType <IPayrollCategoryService, PayrollCategoryService>();
     Builder.RegisterType <IPayrollDetailService, PayrollDetailService>();
     Builder.RegisterType <IPayrollPeriodService, PayrollPeriodService>();
     Builder.RegisterType <IPaySlipService, PaySlipService>();
     Builder.RegisterType <IPayslipAttributeService, PayslipAttributeService>();
     Builder.RegisterType <IPayslipAttributeMappingService, PayslipAttributeMappingService>();
     Builder.RegisterType <IPaySlipItemService, PaySlipItemService>();
     Builder.RegisterType <IPaySlipTemplateService, PaySlipTemplateService>();
     Builder.RegisterType <IPosService, PosService>();
     Builder.RegisterType <IPosConfigService, PosConfigService>();
     Builder.RegisterType <IPosFileService, PosFileService>();
     Builder.RegisterType <IPriceAdditionService, PriceAdditionService>();
     Builder.RegisterType <IPriceGroupService, PriceGroupService>();
     Builder.RegisterType <IPriceNightService, PriceNightService>();
     Builder.RegisterType <IProductService, ProductService>();
     Builder.RegisterType <IProductCategoryService, ProductCategoryService>();
     Builder.RegisterType <IProductCollectionService, ProductCollectionService>();
     Builder.RegisterType <IProductCollectionItemMappingService, ProductCollectionItemMappingService>();
     Builder.RegisterType <IProductComboDetailService, ProductComboDetailService>();
     Builder.RegisterType <IProductDetailMappingService, ProductDetailMappingService>();
     Builder.RegisterType <IProductImageService, ProductImageService>();
     Builder.RegisterType <IProductImageCollectionService, ProductImageCollectionService>();
     Builder.RegisterType <IProductImageCollectionItemMappingService, ProductImageCollectionItemMappingService>();
     Builder.RegisterType <IProductItemService, ProductItemService>();
     Builder.RegisterType <IProductItemCategoryService, ProductItemCategoryService>();
     Builder.RegisterType <IProductItemCompositionMappingService, ProductItemCompositionMappingService>();
     Builder.RegisterType <IProductSpecificationService, ProductSpecificationService>();
     Builder.RegisterType <IProfileService, ProfileService>();
     Builder.RegisterType <IPromotionService, PromotionService>();
     Builder.RegisterType <IPromotionDetailService, PromotionDetailService>();
     Builder.RegisterType <IPromotionStoreMappingService, PromotionStoreMappingService>();
     Builder.RegisterType <IProviderService, ProviderService>();
     Builder.RegisterType <IProviderProductItemMappingService, ProviderProductItemMappingService>();
     Builder.RegisterType <IProvinceService, ProvinceService>();
     Builder.RegisterType <IRatingProductService, RatingProductService>();
     Builder.RegisterType <IRatingStarService, RatingStarService>();
     Builder.RegisterType <IReportTrackingService, ReportTrackingService>();
     Builder.RegisterType <IRoleService, RoleService>();
     Builder.RegisterType <IRoomService, RoomService>();
     Builder.RegisterType <IRoomCategoryService, RoomCategoryService>();
     Builder.RegisterType <IRoomCategoryPriceGroupMappingService, RoomCategoryPriceGroupMappingService>();
     Builder.RegisterType <IRoomFloorService, RoomFloorService>();
     Builder.RegisterType <ISalaryHourService, SalaryHourService>();
     Builder.RegisterType <ISalaryRuleService, SalaryRuleService>();
     Builder.RegisterType <IStoreService, StoreService>();
     Builder.RegisterType <IStoreDomainService, StoreDomainService>();
     Builder.RegisterType <IStoreGroupService, StoreGroupService>();
     Builder.RegisterType <IStoreGroupMappingService, StoreGroupMappingService>();
     Builder.RegisterType <IStoreThemeService, StoreThemeService>();
     Builder.RegisterType <IStoreUserService, StoreUserService>();
     Builder.RegisterType <IStoreWebRouteService, StoreWebRouteService>();
     Builder.RegisterType <IStoreWebRouteModelService, StoreWebRouteModelService>();
     Builder.RegisterType <IStoreWebSettingService, StoreWebSettingService>();
     Builder.RegisterType <IStoreWebViewCounterService, StoreWebViewCounterService>();
     Builder.RegisterType <ISubRentGroupService, SubRentGroupService>();
     Builder.RegisterType <IsysdiagramService, sysdiagramService>();
     Builder.RegisterType <ISystemPartnerMappingService, SystemPartnerMappingService>();
     Builder.RegisterType <ITagService, TagService>();
     Builder.RegisterType <ITagMappingService, TagMappingService>();
     Builder.RegisterType <ITemplateDetailMappingService, TemplateDetailMappingService>();
     Builder.RegisterType <ITemplateReportProductItemMappingService, TemplateReportProductItemMappingService>();
     Builder.RegisterType <ITemplateRuleMappingService, TemplateRuleMappingService>();
     Builder.RegisterType <IThemeService, ThemeService>();
     Builder.RegisterType <ITimeFrameService, TimeFrameService>();
     Builder.RegisterType <ITimeModeRuleService, TimeModeRuleService>();
     Builder.RegisterType <ITimeModeTypeService, TimeModeTypeService>();
     Builder.RegisterType <ITokenUserService, TokenUserService>();
     Builder.RegisterType <ITransactionService, TransactionService>();
     Builder.RegisterType <IUserService, UserService>();
     Builder.RegisterType <IVATOrderService, VATOrderService>();
     Builder.RegisterType <IVATOrderMappingService, VATOrderMappingService>();
     Builder.RegisterType <IViewCounterService, ViewCounterService>();
     Builder.RegisterType <IVoucherService, VoucherService>();
     Builder.RegisterType <IWardService, WardService>();
     Builder.RegisterType <IWebCustomerFeedbackService, WebCustomerFeedbackService>();
     Builder.RegisterType <IWebElementService, WebElementService>();
     Builder.RegisterType <IWebElementTypeService, WebElementTypeService>();
     Builder.RegisterType <IWebMenuService, WebMenuService>();
     Builder.RegisterType <IWebMenuCategoryService, WebMenuCategoryService>();
     Builder.RegisterType <IWebPageService, WebPageService>();
     Builder.RegisterType <ICustomerFeedbackService, CustomerFeedbackService>();
     G.TContainer = Builder.Build();
 }