// GET: Lamps/Create public async Task <IActionResult> Create() { var lamps = await lampRepository.GetAllAsync(); var kopers = await koperRepository.GetAllAsync(); ViewData["lamps"] = lamps; ViewData["kopers"] = kopers; return(View()); }
public async Task <IActionResult> Index() { var kopers = await koperRepository.GetAllAsync(); return(View(kopers)); }