Exemple #1
0
        private CategoriesMenu AddCategoriesMenu(ObjectCategories categoriesData)
        {
            CategoriesMenu categoriesMenu = new CategoriesMenu();

            categoriesMenu.productCategoryId          = categoriesData.productCategoryId;
            categoriesMenu.productCategoryDescription = categoriesData.productCategoryDescription;
            categoriesMenu.productCategoryImage       = categoriesData.productCategoryImage;

            return(categoriesMenu);
        }
Exemple #2
0
        private SideMenuModel AddBrandsMenu(ObjectCategories categoriesData)
        {
            SideMenuModel brandsMenu = new SideMenuModel();

            brandsMenu.productBrandId          = categoriesData.productBrandId;
            brandsMenu.productBrandDescription = categoriesData.productBrandDescription;
            brandsMenu.productBrandImage       = categoriesData.productBrandImage;
            brandsMenu.categoriesMenu          = new List <CategoriesMenu> {
                AddCategoriesMenu(categoriesData)
            };

            return(brandsMenu);
        }