public ActionResult NptiTJ(Notification Noty) { var NotyFi = Noty.Add(); if (NotyFi) { return Content("添加成功"); } else { return Content("添加失败"); } }
/// <summary> /// 删除公告 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult RoomNoti(int id) { var noti = new Notification {NotifyId = id }.Remove(); if (noti) { return Content("删除成功"); } else { return Content("删除失败"); } }
public ActionResult Noti(Notification Noti) { var noti = Noti.Update(Noti.NotifyId,"NotifyId"); if (noti) { return Content("修改成功"); } else { return Content("修改失败"); } }