Beispiel #1
0
 public ActionResult Edit([Bind(Include = "ID,StatusType,StatusName,Description")] Status status)
 {
     if (ModelState.IsValid)
     {
         db.Entry(status).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(status));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "ID,discriminator,LastName,FirstName,Email,phoneNumber,AgencyName")] Person person)
 {
     if (ModelState.IsValid)
     {
         db.Entry(person).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(person));
 }
Beispiel #3
0
 public ActionResult Edit([Bind(Include = "ID,CustodianFlag,LastName,FirstName,Email,phoneNumber,AgencyName")] Custodian custodian)
 {
     if (ModelState.IsValid)
     {
         db.Entry(custodian).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(custodian));
 }
Beispiel #4
0
        public ActionResult Edit([Bind(Include = "ID,agentFlag,LastName,FirstName,Email,phoneNumber,AgencyName")] Agent agent, MFIntake.Models.Intake intake)
        {
            if (ModelState.IsValid)
            {
                db.Entry(agent).State = EntityState.Modified;
                db.SaveChanges();

                return(Redirect(Request.UrlReferrer.ToString()));
                //return RedirectToAction("Index");
            }
            return(View(agent));
        }