예제 #1
0
        public ActionResult Create([Bind(Include = "CONAME,CONO,COREGNO,ENTDATE,PARTICULARS,PARTICULARS1,PARTICULARS2,SOURCE,SOURCENO,TRAMT,TROS,MINAMT,MAXAMT")] V_CSTRAN_OSTD v_CSTRAN_OSTD)
        {
            if (ModelState.IsValid)
            {
                db.V_CSTRAN_OSTD.Add(v_CSTRAN_OSTD);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(v_CSTRAN_OSTD));
        }
예제 #2
0
        // GET: V_CSTRAN_OSTD/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            V_CSTRAN_OSTD v_CSTRAN_OSTD = db.V_CSTRAN_OSTD.Find(id);

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