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