public ActionResult Create(SET_BOOK_GROUP set_book_group) { if (ModelState.IsValid) { db.SET_BOOK_GROUP_INSERT(decimal.Parse(Session["sess_USER_NO"].ToString()), decimal.Parse(Session["sess_LOGON_NO"].ToString()), set_book_group.BOOK_GROUP_NAME, set_book_group.BOOK_GROUP_DESC, set_book_group.BOOK_PROJ_TYPE_NO, set_book_group.IS_ACTIVE, set_book_group.ACTIVE_FROM, set_book_group.ACTIVE_TO, set_book_group.SL_NUM); /*db.SET_BOOK_GROUP.AddObject(set_book_group); * db.SaveChanges();*/ return(RedirectToAction("Index")); } ViewBag.BOOK_PROJ_TYPE_NO = new SelectList(db.SET_BOOK_PROJ_TYPE, "BOOK_PROJ_TYPE_NO", "LAST_ACTION", set_book_group.BOOK_PROJ_TYPE_NO); return(View(set_book_group)); }