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

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

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

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

            return(_dtoMapper.Map(couponEntities));
        }