public ActionResult Edit([Bind(Include = "Sr_no,Email,Password,Name,Address,City,Age,Status")] tbl_registration tbl_registration) { if (ModelState.IsValid) { db.Entry(tbl_registration).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tbl_registration)); }
public ActionResult Edit([Bind(Include = "id_request_participant,no_reg_parent,group_code,no_reg,allowance_idr,allowance_usd,allowance_jpy,created_date,modified_date,user_modified,active_flag")] tb_r_travel_request_participant tb_r_travel_request_participant) { if (ModelState.IsValid) { db.Entry(tb_r_travel_request_participant).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tb_r_travel_request_participant)); }