public JsonResult UserEDIT(tb_user USR) { Thread.Sleep(1000); string result = "GAGAL"; try { USR.UPD = DateTime.Now; USR.RECID = ""; if (ModelState.IsValid) { _DB.Entry(USR).State = EntityState.Modified; _DB.SaveChanges(); result = "OK"; } } catch (Exception ex) { result = ex.Message.ToString(); } return(Json(new { status = result })); }