public IActionResult AllCategories(ArtWorkCategoriesViewModel viewModel)
        {
            var existingArtWorkCategories = this.ArtisticWorkService.GetArtisticWorkCategories();

            viewModel.Categories = mapper.Map <List <ArtWorkCategoryViewModel> >(existingArtWorkCategories);

            viewModel.Cloudinary = this.cloudinaryService.GetCloudinaryInstance();

            return(this.View(viewModel));
        }
Esempio n. 2
0
        public IActionResult AllCategories(ArtWorkCategoriesViewModel artWorkCategoriesViewModel)
        {
            artWorkCategoriesViewModel.Categories = this.ArtisticWorkService.GetArtisticWorkCategories();

            return(this.View(artWorkCategoriesViewModel));
        }
        public IActionResult Categories(ArtWorkCategoriesViewModel categoriesViewModel)
        {
            categoriesViewModel.Categories = ArtisticWorkService.GetArtisticWorkCategories();

            return(View(categoriesViewModel));
        }