Beispiel #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            JC_HC_TYPES jc_hc_types = db.JC_HC_TYPES.Find(id);

            db.JC_HC_TYPES.Remove(jc_hc_types);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "ID,TYCOD,SUB_TYCOD,AGENCY,PRIORITY,UN_CNT,ALWYS_SND,NEVR_SND,NOT4PUB")] JC_HC_TYPES jc_hc_types)
 {
     if (ModelState.IsValid)
     {
         db.Entry(jc_hc_types).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(jc_hc_types));
 }
Beispiel #3
0
        public ActionResult Create([Bind(Include = "ID,TYCOD,SUB_TYCOD,AGENCY,PRIORITY,UN_CNT,ALWYS_SND,NEVR_SND,NOT4PUB")] JC_HC_TYPES jc_hc_types)
        {
            if (ModelState.IsValid)
            {
                db.JC_HC_TYPES.Add(jc_hc_types);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(jc_hc_types));
        }
Beispiel #4
0
        // GET: Types/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            JC_HC_TYPES jc_hc_types = db.JC_HC_TYPES.Find(id);

            if (jc_hc_types == null)
            {
                return(HttpNotFound());
            }
            return(View(jc_hc_types));
        }