コード例 #1
0
        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"));
        }
コード例 #2
0
 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));
 }
コード例 #3
0
        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));
        }
コード例 #4
0
        // 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));
        }