예제 #1
0
 public ActionResult NptiTJ(Notification Noty)
 {
     var NotyFi = Noty.Add();
     if (NotyFi)
     {
         return Content("添加成功");
     }
     else
     {
         return Content("添加失败");
     }
 }
예제 #2
0
 /// <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("删除失败");
     }
 }
예제 #3
0
 public ActionResult Noti(Notification Noti)
 {
     var noti = Noti.Update(Noti.NotifyId,"NotifyId");
     if (noti)
     {
         return Content("修改成功");
     }
     else
     {
         return Content("修改失败");
     }
 }