public ActionResult DeleteConfirmed(Guid id) { RefBookOwner refBookOwner = db.RefBookOwner.Find(id); db.RefBookOwner.Remove(refBookOwner); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "idRefBookOwner,DateDownload,OwnerId,OwnerDsc")] RefBookOwner refBookOwner) { if (ModelState.IsValid) { db.Entry(refBookOwner).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(refBookOwner)); }
public ActionResult Create([Bind(Include = "idRefBookOwner,DateDownload,OwnerId,OwnerDsc")] RefBookOwner refBookOwner) { if (ModelState.IsValid) { refBookOwner.idRefBookOwner = Guid.NewGuid(); db.RefBookOwner.Add(refBookOwner); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(refBookOwner)); }
// GET: RefBookOwners/Delete/5 public ActionResult Delete(Guid?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RefBookOwner refBookOwner = db.RefBookOwner.Find(id); if (refBookOwner == null) { return(HttpNotFound()); } return(View(refBookOwner)); }