Exemplo n.º 1
0
        //Form Submit Action
        public ActionResult GetdataSubmit(T_SYST_CLAS t_SYST_CLAS)
        {
            //Model Select
            var data = db.T_SYST_CLAS.Where(m => m.SYST_NO.Contains(t_SYST_CLAS.SYST_NO)).ToList();

            //
            return(View("Index", data));
        }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "SYST_NO,CLAS_NO,CLAS_NAME")] T_SYST_CLAS t_SYST_CLAS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(t_SYST_CLAS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(t_SYST_CLAS));
 }
Exemplo n.º 3
0
        public ActionResult Create([Bind(Include = "SYST_NO,CLAS_NO,CLAS_NAME")] T_SYST_CLAS t_SYST_CLAS)
        {
            if (ModelState.IsValid)
            {
                db.T_SYST_CLAS.Add(t_SYST_CLAS);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(t_SYST_CLAS));
        }