public ActionResult DeleteConfirmed(int id) { User_Marketing_Manager_Detail user_Marketing_Manager_Detail = db.User_Marketing_Manager_Detail.Find(id); db.User_Marketing_Manager_Detail.Remove(user_Marketing_Manager_Detail); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "userId,mkmID,mkm_fullname,mkm_mail,mkm_gender,mkm_doB,mkm_phone")] User_Marketing_Manager_Detail user_Marketing_Manager_Detail) { if (ModelState.IsValid) { db.Entry(user_Marketing_Manager_Detail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index", "Home")); } ViewBag.userId = new SelectList(db.AspNetUsers, "Id", "Email", user_Marketing_Manager_Detail.userId); return(View(user_Marketing_Manager_Detail)); }
// GET: User_Marketing_Manager_Detail/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } User_Marketing_Manager_Detail user_Marketing_Manager_Detail = db.User_Marketing_Manager_Detail.Find(id); if (user_Marketing_Manager_Detail == null) { return(HttpNotFound()); } return(View(user_Marketing_Manager_Detail)); }
// GET: User_Marketing_Manager_Detail/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } User_Marketing_Manager_Detail user_Marketing_Manager_Detail = db.User_Marketing_Manager_Detail.Find(id); if (user_Marketing_Manager_Detail == null) { return(HttpNotFound()); } ViewBag.userId = new SelectList(db.AspNetUsers, "Id", "Email", user_Marketing_Manager_Detail.userId); return(View(user_Marketing_Manager_Detail)); }