public ActionResult DeleteConfirmed(int id) { JC_HC_SENT jc_hc_sent = db.JC_HC_SENT.Find(id); db.JC_HC_SENT.Remove(jc_hc_sent); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "EID,AG_ID,TYCOD,SUB_TYCOD,SENT_DT,EMAIL_SENT,NUM_1,ID")] JC_HC_SENT jc_hc_sent) { if (ModelState.IsValid) { db.Entry(jc_hc_sent).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jc_hc_sent)); }
public ActionResult Create([Bind(Include = "EID,AG_ID,TYCOD,SUB_TYCOD,SENT_DT,EMAIL_SENT,NUM_1,ID")] JC_HC_SENT jc_hc_sent) { if (ModelState.IsValid) { db.JC_HC_SENT.Add(jc_hc_sent); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(jc_hc_sent)); }
// GET: Emails/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } JC_HC_SENT jc_hc_sent = db.JC_HC_SENT.Find(id); if (jc_hc_sent == null) { return(HttpNotFound()); } return(View(jc_hc_sent)); }