コード例 #1
0
 public ActionResult Edit([Bind(Include = "Codigo,MailFunc,FechaInic")] Expediente expediente)
 {
     if (ModelState.IsValid)
     {
         db.Entry(expediente).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(expediente));
 }
 public ActionResult Edit([Bind(Include = "Cedula,Nombre,Apellido,Tel,Mail")] Solicitante solicitante)
 {
     if (ModelState.IsValid)
     {
         db.Entry(solicitante).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(solicitante));
 }