// 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());
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var kopers = await koperRepository.GetAllAsync();

            return(View(kopers));
        }