public ActionResult Edit(VOUCHER_TYPE_TABLLE voucher_type_tablle) { if (ModelState.IsValid) { db.Entry(voucher_type_tablle).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Voucher Type Has Been Successfully Altered"; return(RedirectToAction("Index")); } return(View(voucher_type_tablle)); }
public ActionResult Edit(ETHINICITY_TABLE ethinicity_table) { if (ModelState.IsValid) { db.Entry(ethinicity_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "Ethinicity Has Been Successfully Changed"; return(RedirectToAction("Index")); } return(View(ethinicity_table)); }
public ActionResult Edit(FACULTY_TABLE faculty_table) { if (ModelState.IsValid) { db.Entry(faculty_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Faculty Has Been Successfully Altered!"; return(RedirectToAction("Index")); } return(View(faculty_table)); }
public ActionResult Edit(CAMPUS_TABLE campus_table) { if (ModelState.IsValid) { db.Entry(campus_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Campus Has Been Successfully Altered!"; return(RedirectToAction("Index")); } return(View(campus_table)); }
public ActionResult Edit(UserProfile userprofile) { if (ModelState.IsValid) { db.Entry(userprofile).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "User has been changed"; return(RedirectToAction("Index")); } return(View(userprofile)); }
public ActionResult Edit(DETAILED_ETHINICITY_TABLE detailed_ethinicity_table) { if (ModelState.IsValid) { db.Entry(detailed_ethinicity_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "Ethinicity Has Been Successfully Changed"; return(RedirectToAction("Index")); } ViewBag.ETHINICITY_ID = new SelectList(db.ETHINICITY_TABLE, "ETHINICITY_ID", "ETHINICITY", detailed_ethinicity_table.ETHINICITY_ID); return(View(detailed_ethinicity_table)); }
public ActionResult Edit(COURSE_TABLE course_table) { if (ModelState.IsValid) { db.Entry(course_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Course Has Been Successfully Altered!"; return(RedirectToAction("Index")); } ViewBag.FACULTY_ID = new SelectList(db.FACULTY_TABLE, "FACULTY_ID", "FACULTY_NAME", course_table.FACULTY_ID); return(View(course_table)); }
public ActionResult Edit(VOUCHER_TABLE voucher_table) { if (ModelState.IsValid) { db.Entry(voucher_table).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Issued Voucher Has Been Successfully Altered"; return(RedirectToAction("Index")); } ViewBag.STUDENT_ID = new SelectList(db.STUDENTS, "STUDENT_ID", "STUDENT_FNAME", voucher_table.STUDENT_ID); ViewBag.VOUCHER_TYPE_ID = new SelectList(db.VOUCHER_TYPE_TABLLE, "VOUCHER_TYPE_ID", "VOUCHER_TYPE", voucher_table.VOUCHER_TYPE_ID); return(View(voucher_table)); }
public ActionResult Edit(AVAILABLE_COURSE available_course) { if (ModelState.IsValid) { db.Entry(available_course).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "The Campus Faculty Course Link Has Been Successfully Altered!"; return(RedirectToAction("Index")); } ViewBag.CAMPUS_ID = new SelectList(db.CAMPUS_TABLE, "CAMPUS_ID", "CAMPUS_NAME", available_course.CAMPUS_ID); ViewBag.COURSE_ID = new SelectList(db.COURSE_TABLE, "COURSE_ID", "COURSE_NAME", available_course.COURSE_ID); ViewBag.FACULTY_ID = new SelectList(db.FACULTY_TABLE, "FACULTY_ID", "FACULTY_NAME", available_course.FACULTY_ID); return(View(available_course)); }
public ActionResult Edit(STUDENT student) { if (ModelState.IsValid) { db.Entry(student).State = EntityState.Modified; db.SaveChanges(); TempData["notice"] = "Student Has Been Successfully Edited!"; return(RedirectToAction("Index")); } ViewBag.AVAIL_COURSE_ID = new SelectList(db.AVAILABLE_COURSE, "AVAIL_COURSE_ID", "AVAIL_COURSE_ID", student.AVAIL_COURSE_ID); ViewBag.DETAILED_ETHINICITY_ID = new SelectList(db.DETAILED_ETHINICITY_TABLE, "DETAILED_ETHINICITY_ID", "DETAILED_ETHINICITY", student.DETAILED_ETHINICITY_ID); ViewBag.ETHINICITY_ID = new SelectList(db.ETHINICITY_TABLE, "ETHINICITY_ID", "ETHINICITY", student.ETHINICITY_ID); return(View(student)); }