public async Task <IActionResult> Create([Bind("IdRoba,SifraProizvoda,Status,Tezina,DatumIsporuke")] Roba20191220 roba20191220) { if (ModelState.IsValid) { _context.Add(roba20191220); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(roba20191220)); }
public async Task <IActionResult> Create([Bind("Id,IdRoba,Napomena")] Robanapomene20191220 robanapomene20191220) { if (ModelState.IsValid) { _context.Add(robanapomene20191220); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } ViewData["IdRoba"] = new SelectList(_context.Roba20191220, "IdRoba", "IdRoba", robanapomene20191220.IdRoba); return(View(robanapomene20191220)); }