コード例 #1
0
 public ActionResult Edit([Bind(Include = "id,jobTitle,location,ShortDiscription,jobintroduction,Yourmission,Skills,BanerImage")] Career career)
 {
     if (ModelState.IsValid)
     {
         db.Entry(career).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(career));
 }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "id,Blog,Date,Category,Heading,ShortDiscription,FeaturedImage")] BlogTable blogTable)
 {
     db.Database.CommandTimeout = 50;
     if (ModelState.IsValid)
     {
         db.Entry(blogTable).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(blogTable));
 }