public ActionResult Edit([Bind(Include = "Id,CertificateNo,CompanyName,CompanyAddress,Country,Scope,RegistrationDate,ReRegistrationDate,Standard,Status")] CertificateInfo certificateInfo) { if (ModelState.IsValid) { db.Entry(certificateInfo).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(certificateInfo)); }
public ActionResult Edit([Bind(Include = "ID,CertName,UserID")] CertificationList certificationList) { if (ModelState.IsValid) { db.Entry(certificationList).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(certificationList)); }