Esempio n. 1
0
        public ActionResult Submit_Form(TB_SUBMIT model)
        {
            ObjectParameter seq = new ObjectParameter("seq", typeof(int));

            DB.up_submit_insert
            (
                model.name,
                model.title,
                model.contents,
                model.hp1,
                model.hp2,
                model.hp3,
                model.post_no,
                model.adress1,
                model.adress2,
                model.birth_dt,
                seq
            );
            ViewBag.seq = seq;
            return(RedirectToAction("Detail", new { seq = seq.Value }));
        }