[HttpPost]
public async Task<ActionResult> update_nominee(custreg_working d, string id)
{
using (var context = new db_context())
{
d.cust_id = id;
context.Configuration.ValidateOnSaveEnabled = false;
context.custreg_working.Attach(d);
System.Data.Entity.Infrastructure.DbEntityEntry<custreg_working> entry = context.Entry(d);
entry.Property(e => e.Nominee).IsModified = true;
entry.Property(e => e.Relation).IsModified = true;
entry.Property(e => e.nmob).IsModified = true;
await context.SaveChangesAsync();
}
return RedirectToAction("edit", new { id = d.cust_id });
}
No comments:
Post a Comment