Ejemplo n.º 1
0
        public AccessaryController(IAccessaryBusinessService accessaryService, IBranchBusinessService branchService,
                                   IAccessaryUnitBusinessService accessaryUnitService, ICategoryBusinessService categoryService)
        {
            _serviceBuilder = new ServiceBuilder();
            _serviceBuilder.BuildAccessaryService(accessaryService);
            _serviceBuilder.BuildBranchService(branchService);
            _serviceBuilder.BuildAccessaryUnitService(accessaryUnitService);
            _serviceBuilder.BuildCategoryService(categoryService);

            _serviceParameter = _serviceBuilder.Parameter;
        }
Ejemplo n.º 2
0
 public CategoryController(ICategoryBusinessService categoryService)
 {
     _serviceBuilder = new ServiceBuilder();
     _serviceBuilder.BuildCategoryService(categoryService);
 }