public ActionResult AddDecision(Boolean decision, String decision_text, Paper paper) { Paper p = db.Papers.Find(paper.id_paper); if (ModelState.IsValid) { p.decision = paper.decision; p.decision_text = paper.decision_text; db.Entry(p).State = EntityState.Modified; db.SaveChanges(); } return(RedirectToAction("ConferenceChair", "Conferences")); }
public ActionResult Edit([Bind(Include = "id_pcmember,id_user,id_conference,is_chair,date_invitation_sent,date_invitation_acc,is_valid")] PCmember pCmember) { if (ModelState.IsValid) { db.Entry(pCmember).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pCmember)); }
public ActionResult Edit([Bind(Include = "id_subreviewer,id_paper_assignment,id_user,invitation_send_date,invitation_ack,is_accepted")] Subreviewer subreviewer) { if (ModelState.IsValid) { db.Entry(subreviewer).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(subreviewer)); }
public ActionResult Edit([Bind(Include = "id_conference,conference_name,location,start_date,end_date")] Conference conference) { if (ModelState.IsValid) { db.Entry(conference).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(conference)); }
public ActionResult Edit([Bind(Include = "id_review,id_paper_assignment,grade,confidence,comment,comment_to_editor,date_submitted,from_subreviewer")] Review review) { if (ModelState.IsValid) { db.Entry(review).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(review)); }
public ActionResult Edit(User user) { if (ModelState.IsValid) { db.Entry(user).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(user)); }
public ActionResult Edit([Bind(Include = "id_paper_assignment,id_paper,id_pcmember,date_assigned,date_due,is_delegated")] PaperAssignment paperAssignment) { if (ModelState.IsValid) { db.Entry(paperAssignment).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(paperAssignment)); }
public ActionResult Edit([Bind(Include = "id_user")] Author author, String email, String password) { if (ModelState.IsValid) { db.Entry(author).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(author)); }
public ActionResult Edit(Email email) { if (ModelState.IsValid) { db.Entry(email).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.UserID = new SelectList(db.User, "ID", "Name", email.UserID); return(View(email)); }
public ActionResult Edit([Bind(Include = "id_subreview,id_subreviewer,grade,confidence,comment,date_submitted")] Subreview subreview, int id) { if (ModelState.IsValid) { db.Entry(subreview).State = EntityState.Modified; subreview.comment_to_edit = (String)Session["Old"]; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(subreview)); }
public ActionResult Edit([Bind(Include = "id_user,surname,first_name,email,institution,password")] User user) { User u = db.Users.Find(user.id_user); if (ModelState.IsValid) { u.surname = user.surname; u.first_name = user.first_name; u.email = user.email; u.institution = user.institution; u.password = user.password; db.Entry(u).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } //return View(user); return(RedirectToAction("Login", "Users")); }