public JsonResult Delete()
        {
            int id = Convert.ToInt32(Request.Params["id"]);

            MessageDAL.Delete(id);
            JsonResult jr = new JsonResult();

            jr.Data = MessageDAL.GetMessages();
            return(jr);
        }
Beispiel #2
0
 //metodo para borrar un Mensajes
 public Message Delete(Message pMessage)
 {
     return(MessageDal.Delete(pMessage));
 }
 public int Delete(int id)
 {
     return(dal.Delete(id));
 }
Beispiel #4
0
 /// <summary>
 /// 删除消息
 /// </summary>
 /// <param name="receiveUid"></param>
 /// <param name="id"></param>
 public bool Delete(int receiveUid, int id)
 {
     return(dal.Delete(receiveUid, id) == 1);
 }