Example #1
0
        public IActionResult Create()
        {
            ViewBag.Imports    = _importRepository.GetAll();
            ViewBag.Categories = _categoryRepository.GetAll();

            return(View());
        }
Example #2
0
        public IActionResult Index()
        {
            IEnumerable <Import> imports;

            imports = _importRepository.GetAll();

            var importViewModel = new ImportViewModel
            {
                Imports = imports
            };

            return(View(importViewModel));
        }