public async Task <IActionResult> Create([Bind("TerminId,PacijentId,VrijemeTermina,ZauzetostTermina,ObrazlozenjeTermina")] Termin termin) { if (ModelState.IsValid) { _context.Add(termin); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(termin)); }
public async Task <IActionResult> Create([Bind("Id,NazivFirme,BrojTelefona,Adresa")] Kontakt kontakt) { if (ModelState.IsValid) { _context.Add(kontakt); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(kontakt)); }
public async Task <IActionResult> Create([Bind("Id,ImePrezime,Email,Sifra")] Korisnik korisnik) { if (ModelState.IsValid) { _context.Add(korisnik); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(korisnik)); }
public async Task <IActionResult> Create([Bind("DatumRodjenja,BrojTelefona,Spol,Prebivaliste,JedinstveniMatičniBroj,ZdravstveneNapomene,LoyalKarticaId,Id,ImePrezime,Email,Sifra")] Pacijent pacijent) { if (ModelState.IsValid) { _context.Add(pacijent); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(pacijent)); }
public async Task <IActionResult> Create(CjenovnikItem cjItem) { if (ModelState.IsValid) { _context.Add(cjItem); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(cjItem)); }
public async Task <IActionResult> Create([Bind("Id,DatumKreiranja")] LoyalKartica loyalKartica) { if (ModelState.IsValid) { _context.Add(loyalKartica); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(loyalKartica)); }
public async Task <IActionResult> Create([Bind("Id")] KnjigaProtokola knjigaProtokola) { if (ModelState.IsValid) { _context.Add(knjigaProtokola); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(knjigaProtokola)); }
public async Task <IActionResult> Create([Bind("PacijentId,DatumOtvaranjaKartona,PosjedovanjeLoyalKartice")] StomatoloskiKarton stomatoloskiKarton) { if (ModelState.IsValid) { _context.Add(stomatoloskiKarton); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(stomatoloskiKarton)); }
public async Task <IActionResult> Create([Bind("Id,DatumPruzanjaUsluga,Oboljenje,RtgSnimak,Napomene,OpisUsluge,IzvjestajTerapije,KartonId,KnjigaProtokolaId")] StomatoloskaUsluga stomatoloskaUsluga) { if (ModelState.IsValid) { _context.Add(stomatoloskaUsluga); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Index))); } return(View(stomatoloskaUsluga)); }