public ActionResult DeleteConfirmed(int id) { T_Part_office_describe t_Part_office_describe = db.T_Part_office_describe.Find(id); db.T_Part_office_describe.Remove(t_Part_office_describe); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,textKay,langCode,textValue")] T_Part_office_describe t_Part_office_describe) { if (ModelState.IsValid) { db.Entry(t_Part_office_describe).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(t_Part_office_describe)); }
public ActionResult Create([Bind(Include = "Id,textKay,langCode,textValue")] T_Part_office_describe t_Part_office_describe) { if (ModelState.IsValid) { db.T_Part_office_describe.Add(t_Part_office_describe); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(t_Part_office_describe)); }
// GET: T_Part_office_describe/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } T_Part_office_describe t_Part_office_describe = db.T_Part_office_describe.Find(id); if (t_Part_office_describe == null) { return(HttpNotFound()); } return(View(t_Part_office_describe)); }