コード例 #1
0
        public IActionResult Categories()
        {
            var existingArtWorkCategories = ArtisticWorkService.GetArtisticWorkCategories();

            var viewModel = new ArtWorkCategoriesViewModel();

            viewModel.Categories = mapper.Map <List <ArtWorkCategoryViewModel> >(existingArtWorkCategories);
            viewModel.Cloudinary = this.cloudinaryService.GetCloudinaryInstance();

            return(View(viewModel));
        }
コード例 #2
0
        public IActionResult Categories(ArtWorkCategoriesViewModel categoriesViewModel)
        {
            categoriesViewModel.Categories = ArtisticWorkService.GetArtisticWorkCategories();

            return(View(categoriesViewModel));
        }