public ActionResult DeleteConfirmed(string id) { System_Country_Codes system_Country_Codes = db.System_Country_Codes.Find(id); db.System_Country_Codes.Remove(system_Country_Codes); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Code,Name")] System_Country_Codes system_Country_Codes) { if (ModelState.IsValid) { db.Entry(system_Country_Codes).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(system_Country_Codes)); }
public ActionResult Create([Bind(Include = "Code,Name")] System_Country_Codes system_Country_Codes) { if (ModelState.IsValid) { db.System_Country_Codes.Add(system_Country_Codes); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(system_Country_Codes)); }
// GET: System_Country_Codes/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } System_Country_Codes system_Country_Codes = db.System_Country_Codes.Find(id); if (system_Country_Codes == null) { return(HttpNotFound()); } return(View(system_Country_Codes)); }