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)); }
public IActionResult Categories(ArtWorkCategoriesViewModel categoriesViewModel) { categoriesViewModel.Categories = ArtisticWorkService.GetArtisticWorkCategories(); return(View(categoriesViewModel)); }