public IActionResult Create() { ViewBag.Imports = _importRepository.GetAll(); ViewBag.Categories = _categoryRepository.GetAll(); return(View()); }
public IActionResult Index() { IEnumerable <Import> imports; imports = _importRepository.GetAll(); var importViewModel = new ImportViewModel { Imports = imports }; return(View(importViewModel)); }