public HttpResponseMessage DeleteWork(Works obj) { ReturnHelper rh = new ReturnHelper(200, null, 0, ""); try { int i = obj.Delete(" Work_Id=@Work_Id", obj.Work_Id); if (i > 0) { rh.msg = "删除作品成功"; rh.totals = i; } else { rh.msg = "删除作品失败"; rh.code = 400; } } catch (Exception e) { rh.code = 500; rh.msg = "服务器错误,请通知管理员"; } return(ReturnJson(JsonConvert.SerializeObject(rh))); }