public ActionResult Edit([Bind(Include = "user_id,password,fullName,email,joined,active")] PERSON pERSON) { if (ModelState.IsValid) { db.Entry(pERSON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pERSON)); }
public ActionResult Edit([Bind(Include = "user_id,following_id")] FOLLOWING fOLLOWING) { if (ModelState.IsValid) { db.Entry(fOLLOWING).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.user_id = new SelectList(db.People, "user_id", "password", fOLLOWING.user_id); return(View(fOLLOWING)); }
public ActionResult Edit([Bind(Include = "user_id,password,fullName,email,joined,active")] PERSON pERSON) { if (ModelState.IsValid) { // pERSON.password = Session["querypwd"].ToString(); //pERSON.joined = Convert.ToDateTime(created); db.Entry(pERSON).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pERSON)); }
public ActionResult Edit([Bind(Include = "tweet_id,user_id,message,created")] TWEET tWEET) { if (ModelState.IsValid) { tWEET.user_id = Session["user"].ToString(); tWEET.created = DateTime.Now; db.Entry(tWEET).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.user_id = new SelectList(db.People, "user_id", "password", tWEET.user_id); return(View(tWEET)); }