public ActionResult DeleteConfirmed(int id) { GestaoLeadsAtividades gestaoLeadsAtividades = db.GestaoLeadsAtividadesSet.Find(id); db.GestaoLeadsAtividadesSet.Remove(gestaoLeadsAtividades); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,AtividadesId,GestaoLeadsId")] GestaoLeadsAtividades gestaoLeadsAtividades) { if (ModelState.IsValid) { db.Entry(gestaoLeadsAtividades).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.AtividadesId = new SelectList(db.AtividadesSet, "Id", "observacao", gestaoLeadsAtividades.AtividadesId); ViewBag.GestaoLeadsId = new SelectList(db.GestaoLeadsSet, "Id", "dtEntrada", gestaoLeadsAtividades.GestaoLeadsId); return(View(gestaoLeadsAtividades)); }
// GET: GestaoLeadsAtividades/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } GestaoLeadsAtividades gestaoLeadsAtividades = db.GestaoLeadsAtividadesSet.Find(id); if (gestaoLeadsAtividades == null) { return(HttpNotFound()); } return(View(gestaoLeadsAtividades)); }
// GET: GestaoLeadsAtividades/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } GestaoLeadsAtividades gestaoLeadsAtividades = db.GestaoLeadsAtividadesSet.Find(id); if (gestaoLeadsAtividades == null) { return(HttpNotFound()); } ViewBag.AtividadesId = new SelectList(db.AtividadesSet, "Id", "observacao", gestaoLeadsAtividades.AtividadesId); ViewBag.GestaoLeadsId = new SelectList(db.GestaoLeadsSet, "Id", "dtEntrada", gestaoLeadsAtividades.GestaoLeadsId); return(View(gestaoLeadsAtividades)); }