public IEnumerable <SubCategoryDto> GetAllSubCategories()
        {
            var subCategoryEntities = _subCategoryRepository.GetAllSubCategories();

            return(_dtoMapper.Map(subCategoryEntities));
        }
Beispiel #2
0
        public IEnumerable <MenuItemDto> GetAllMenuItems()
        {
            var menuItemsEntities = _menuItemRepository.GetAllMenuItems();

            return(_dtoMapper.Map(menuItemsEntities));
        }
        public IEnumerable <CategoryDto> GetAllCategories()
        {
            var categoryEntities = _categoryRepository.GetAllCategories();

            return(_dtoMapper.Map(categoryEntities));
        }
Beispiel #4
0
        public IEnumerable <CouponDto> GetAllCoupons()
        {
            var couponEntities = _couponRepository.GetAllCoupons();

            return(_dtoMapper.Map(couponEntities));
        }