public string DeleteRecordById(int id) { RepairRecord repairRecord = new RepairRecord(); repairRecord.Id = id; int result = repairService.DeleteRecordById(repairRecord); if (result == 1) { return(JSONHelper.ObjectToJSON(ResponseUtil.Ok())); } else { return(JSONHelper.ObjectToJSON(ResponseUtil.Fail())); } }