public DashboardController(IDashboardRepository dashboardRepository, IMenuItemRepository menuItemRepository, IMenuRepository menuRepository, IItemTagRepository itemTagRepository, ICategoryRepository categoryRepository, IServiceProvider serviceProvider) : base(serviceProvider) { _dashboardRepository = dashboardRepository; _categoryRepository = categoryRepository; _itemTagRepository = itemTagRepository; _menuRepository = menuRepository; _menuItemRepository = menuItemRepository; }
public ItemService(IItemRepository ItemRepository, IItemTagRepository ItemTagRepository, ITagRepository _tagRepository, IUniOfWork unitOfWork) { this._ItemRepository = ItemRepository; this._ItemTagRepository = ItemTagRepository; this._tagRepository = _tagRepository; this._unitOfWork = unitOfWork; }
public MenuItemController(ICategoryRepository categoryRepository, IItemTagRepository itemTagRepository, IMenuItemRepository menuItemRepository, ICurrencyRepository currencyRepository, IServiceProvider serviceProvider) : base(serviceProvider) { _categoryRepository = categoryRepository; _itemTagRepository = itemTagRepository; _menuItemRepository = menuItemRepository; _currencyRepository = currencyRepository; categoryList = new List <Category_VM>(); itemTagList = new List <ItemTag_VM>(); menuItemList = new List <MenuItem_VM>(); }
public MenuService() { var dbFactory = new DbFactory(); //("iCafe-" + "CompanyCode", "CompanyCode-" + "branchcode"); this.itemCategoriesRepository = new ItemCategoryRepository(dbFactory); this.itemCategoriesAvailablityRepository = new ItemCategoriesAvailablityRepository(dbFactory); this.tagRepository = new TagRepository(dbFactory); this.tagsAvailablityRepository = new TagsAvailablityRepository(dbFactory); this.itemRepository = new ItemRepository(dbFactory); this.itemsAvailablityRepository = new ItemsAvailablityRepository(dbFactory); this.itemTagRepository = new ItemTagRepository(dbFactory); this.userRepository = new UserRepository(dbFactory); this.unitOfWork = new UnitOfWork(dbFactory); }
public ItemTagService(IItemTagRepository itemTagRepository) { _itemTagRepository = itemTagRepository; }
public ItemTagController(IItemTagRepository itemTagRepository, IServiceProvider serviceProvider) : base(serviceProvider) { _itemTagRepository = itemTagRepository; itemTagList = new List <ItemTag_VM>(); }