Ejemplo n.º 1
0
        // GET: Paintings/Create
        public IActionResult Create()
        {
            var allPainters = new SelectList(_paintingRepository.GetAllPainters(), "Id", "Name");

            CreatePaintingVm viewModel = new CreatePaintingVm
            {
                AllPainters = allPainters
            };

            return(View(viewModel));
        }