Exemplo n.º 1
0
 // GET: Stuffs/Create
 public IActionResult Create()
 {
     ViewData["BrandId"]      = new SelectList(_context.Brands, "Id", "Name");
     ViewData["StuffGroupId"] = new SelectList(_context.StuffGroups, "Id", "GroupName");
     ViewData["StuffUnitId"]  = new SelectList(_context.Set <StuffUnit>(), "Id", "Name");
     return(View());
 }
Exemplo n.º 2
0
 // GET: Cities/Create
 public IActionResult Create()
 {
     ViewData["ProvinceId"] = new SelectList(_context.Set <Province>(), "Id", "Name");
     return(View());
 }