public ActionResult DeleteConfirmed(long id) { POKUPATELI pokupateli = db.POKUPATELI.Find(id); db.POKUPATELI.Remove(pokupateli); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(POKUPATELI pokupateli) { if (ModelState.IsValid) { db.Entry(pokupateli).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pokupateli)); }
public ActionResult Create(POKUPATELI pokupateli) { if (ModelState.IsValid) { db.POKUPATELI.Add(pokupateli); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pokupateli)); }
// // GET: /Pokupateli/Delete/5 public ActionResult Delete(long id) { POKUPATELI pokupateli = db.POKUPATELI.Find(id); return(View(pokupateli)); }
// // GET: /Pokupateli/Details/5 public ViewResult Details(long id) { POKUPATELI pokupateli = db.POKUPATELI.Find(id); return(View(pokupateli)); }