public void SaveMsg(Model.MsgModel model) { DAL.MsgDAL dal = new DAL.MsgDAL(); dal.DeleteList(" SendDeviceId='" + model.SendDeviceId + "' and TargetDeviceId='" + model.TargetDeviceId + "' and MsgTextId='" + model.MsgTextId + "' "); dal.Add(model); }