예제 #1
0
 public ActionResult Edit([Bind(Include = "GrantTypeKey,GrantTypeName,GrantTypeDescription,GrantTypemaximum,GrantTypeLifetimeMaximum,GrantTypeDateEntered")] GrantType grantType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(grantType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(grantType));
 }
예제 #2
0
 public ActionResult Edit([Bind(Include = "BusinessRuleKey,BusinessRuleText")] BusinessRule businessRule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(businessRule).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(businessRule));
 }