public IActionResult OnPostDelete(string delCode) { ResultNormal result = new ResultNormal(); try { _CourseSrv.Delete(delCode); } catch (Exception ex) { result.ErrorMsg = ex.Message; } return(new JsonResult(result)); }