public ActionResult EditMet(MeetingRoom room) { var meet = room.Update(room.RoomId, "RoomId"); if (meet) { return Content("修改成功"); } else { return Content("修改失败"); } }
public ActionResult AddMetroom(MeetingRoom room) { var addMet = room.Add(); return T(addMet); }
public ActionResult DeleteMet(int id) { var meet = new MeetingRoom { RoomId = id }.Remove(); if (meet) { return Content("删除成功"); } else { return Content("删除失败"); } }