public IActionResult Create()
        {
            SelectList productTypes = new SelectList(productTypesRepository.List(), "Id", "ProductType");

            ViewBag.productTypesList = productTypes;

            SelectList specialTags = new SelectList(specialTagsRepository.List(), "Id", "SpecialTag");

            ViewBag.specialTagsList = specialTags;


            return(View());
        }
Esempio n. 2
0
 public IActionResult Index()
 {
     return(View(productTypesRepository.List()));
 }