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