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