public async Task <IActionResult> Create([Bind("EMSO,Ime,Priimek,Email,Datum_Roj,Kraj_Roj,Starost,Naslov,Postna_Stevilka,Drzava")] UserWithGeslo userWithGeslo) { if (ModelState.IsValid) { _context.Add(userWithGeslo); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(userWithGeslo)); }
public async Task <IActionResult> Create([Bind("Id,Naziv,Alkohol")] Vino vino) { if (ModelState.IsValid) { _context.Add(vino); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(vino)); }
public async Task <IActionResult> Create([Bind("Id,Naziv,Naslov")] Klet klet) { if (ModelState.IsValid) { _context.Add(klet); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(klet)); }
public async Task <IActionResult> Create([Bind("Id,Naziv")] Proizvajalec proizvajalec) { if (ModelState.IsValid) { _context.Add(proizvajalec); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(proizvajalec)); }
public async Task <IActionResult> Create([Bind("Id,Datum_Nakupa,Kolicina,Cena")] Dobava dobava) { if (ModelState.IsValid) { _context.Add(dobava); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(dobava)); }