Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "CandidateId")] Candidate candidate)
 {
     if (ModelState.IsValid)
     {
         db.Entry(candidate).State = EntityState.Modified;
         db.SaveChangesAsync();
         return(RedirectToAction("Index"));
     }
     return(View(candidate));
 }