public async Task <IActionResult> Create([Bind("ID,KorisnickoIme,Email,Lozinka,Ime,Prezime,Grad,Drzava,DatumRodjenja,Opis,KorisnickiPodaci,Pol")] RegistrovaniKorisnik registrovaniKorisnik) { if (ModelState.IsValid) { _context.Add(registrovaniKorisnik); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(registrovaniKorisnik)); }
public async Task <IActionResult> Create([Bind("ID,Komentar,Ocjena")] Recenzije recenzije) { if (ModelState.IsValid) { _context.Add(recenzije); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(recenzije)); }
public async Task <IActionResult> Create([Bind("ID,PotvrdaAdministratora")] Chat chat) { if (ModelState.IsValid) { _context.Add(chat); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(chat)); }