Пример #1
0
        // GET: Category
        public ActionResult Index()
        {
            var listCategories          = _getCategoriesListQuery.GetAll();
            var listCategoriesViewModel = MappingUtility.MappFromCategoriesBOToCategoriesViewModel(listCategories);

            return(View(listCategoriesViewModel));
        }
Пример #2
0
        private ProdutCreationViewModel LoadCategories()
        {
            var ProdutViewModel         = new ProdutCreationViewModel();
            var listCategories          = _getCategoriesListQuery.GetAll();
            var listCategoriesViewModel = MappingUtility.MappFromCategoriesBOToCategoriesViewModel(listCategories);

            ProdutViewModel.ListCategories = listCategoriesViewModel;
            return(ProdutViewModel);
        }