public ResponseMessageResult Deletesy_router(int id) { sy_router sy_router = db.sy_router.Find(id); if (sy_router == null) { model.message = "删除失败"; model.status_code = 401; } db.sy_router.Remove(sy_router); db.SaveChanges(); model.message = "删除成功"; model.status_code = 200; return(new ResponseMessageResult(Request.CreateResponse((HttpStatusCode)model.status_code, model))); }