public ActionResult DeleteConfirmed(int id) { VendorsHistory vendorshistory = db.VendorsHistories.Find(id); db.VendorsHistories.Remove(vendorshistory); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /VendorsHistoryAdmin/Details/5 public ActionResult Details(int id = 0) { VendorsHistory vendorshistory = db.VendorsHistories.Find(id); if (vendorshistory == null) { return(HttpNotFound()); } return(View(vendorshistory)); }
public ActionResult Edit(VendorsHistory vendorshistory) { if (ModelState.IsValid) { db.Entry(vendorshistory).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendorshistory)); }
public ActionResult Create(VendorsHistory vendorshistory) { if (ModelState.IsValid) { db.VendorsHistories.Add(vendorshistory); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vendorshistory)); }