//public JsonResult OnGet(int id) //{ // AuditTrail SD = new AuditTrail(_context); // var AuditTrail = SD.GetAudit(id); // return new JsonResult(AuditTrail); //} public JsonResult OnGetAsync(int id) { AuditTrail SD = new AuditTrail(_context); var AuditTrail = SD.GetAudit(id); return(new JsonResult(AuditTrail)); }