private CategoriesMenu AddCategoriesMenu(ObjectCategories categoriesData) { CategoriesMenu categoriesMenu = new CategoriesMenu(); categoriesMenu.productCategoryId = categoriesData.productCategoryId; categoriesMenu.productCategoryDescription = categoriesData.productCategoryDescription; categoriesMenu.productCategoryImage = categoriesData.productCategoryImage; return(categoriesMenu); }
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); }