public ActionResult DeleteConfirmed(int id) { tblEmployee_HMS03_Team7 tblEmployee_HMS03_Team7 = db.tblEmployee_HMS03_Team7.Find(id); db.tblEmployee_HMS03_Team7.Remove(tblEmployee_HMS03_Team7); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "EmployeeID,LoginID,Employee_Name,Gender,DateofBirth,Age,Designation,Airlines,Work_location,Contact_Number,EmailID,Address")] tblEmployee_HMS03_Team7 tblEmployee_HMS03_Team7) { if (ModelState.IsValid) { db.Entry(tblEmployee_HMS03_Team7).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.LoginID = new SelectList(db.tblLogin_HMS03_Team7, "LoginID", "uname", tblEmployee_HMS03_Team7.LoginID); return(View(tblEmployee_HMS03_Team7)); }
// GET: tblEmployee_HMS03_Team7/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblEmployee_HMS03_Team7 tblEmployee_HMS03_Team7 = db.tblEmployee_HMS03_Team7.Find(id); if (tblEmployee_HMS03_Team7 == null) { return(HttpNotFound()); } return(View(tblEmployee_HMS03_Team7)); }
// GET: tblEmployee_HMS03_Team7/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblEmployee_HMS03_Team7 tblEmployee_HMS03_Team7 = db.tblEmployee_HMS03_Team7.Find(id); if (tblEmployee_HMS03_Team7 == null) { return(HttpNotFound()); } ViewBag.LoginID = new SelectList(db.tblLogin_HMS03_Team7, "LoginID", "uname", tblEmployee_HMS03_Team7.LoginID); return(View(tblEmployee_HMS03_Team7)); }