Exemplo n.º 1
0
 public ActionResult tDependentEdit([Bind(Include = "fDe_ID,fEp_ID,fDe_Name,fDe_Tel,fDe_SSNumber,fRe_ID,fDe_Birth")] tDependents tDependents)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tDependents).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tDependents));
 }
Exemplo n.º 2
0
        public ActionResult tDependentEdit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tDependents tDependents = db.tDependents.Find(id);

            if (tDependents == null)
            {
                return(HttpNotFound());
            }
            return(View(tDependents));
        }