public ActionResult Edit([Bind(Include = "ID,Ime,Prezime,DatumRodenja,Adresa,ImeRoditelja")] Ucenik ucenik) { if (ModelState.IsValid) { db.Entry(ucenik).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ucenik)); }
public ActionResult Edit([Bind(Include = "Id,Nome,CodigoCRM,EstadoCRM,Especialidade")] Medico medico) { if (ModelState.IsValid) { db.Entry(medico).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(medico)); }
public ActionResult Edit([Bind(Include = "id,FirstName,LastName,Nic,Course_id,Batch_id,phoneno")] Registation registation) { if (ModelState.IsValid) { db.Entry(registation).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(registation)); }
public ActionResult Edit([Bind(Include = "StudentId,Std_name,date,GENDER")] Student student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(student)); }
public ActionResult Edit([Bind(Include = "OcjenaID,Grade,datum,komentar,PredmetID,UcenikID")] Ocjena ocjena) { if (ModelState.IsValid) { db.Entry(ocjena).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(ocjena)); }
public ActionResult Edit([Bind(Include = "PredmetID,ImePredmeta,ImeProfesora,Opis")] Predmet predmet) { if (ModelState.IsValid) { db.Entry(predmet).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(predmet)); }
public ActionResult Edit([Bind(Include = "feeid,feeamount,date,StudentId")] fee fee) { if (ModelState.IsValid) { db.Entry(fee).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.StudentId = new SelectList(db.students, "StudentId", "Std_name", fee.StudentId); return(View(fee)); }