// GET: Category public ActionResult Index() { var listCategories = _getCategoriesListQuery.GetAll(); var listCategoriesViewModel = MappingUtility.MappFromCategoriesBOToCategoriesViewModel(listCategories); return(View(listCategoriesViewModel)); }
private ProdutCreationViewModel LoadCategories() { var ProdutViewModel = new ProdutCreationViewModel(); var listCategories = _getCategoriesListQuery.GetAll(); var listCategoriesViewModel = MappingUtility.MappFromCategoriesBOToCategoriesViewModel(listCategories); ProdutViewModel.ListCategories = listCategoriesViewModel; return(ProdutViewModel); }