public void Insert(string MessageId, string MessageType, string MessageName, int?MessageOrder)
        {
            HoadonTrangthai item = new HoadonTrangthai();

            item.MessageId = MessageId;

            item.MessageType = MessageType;

            item.MessageName = MessageName;

            item.MessageOrder = MessageOrder;


            item.Save(UserName);
        }
        public void Update(string MessageId, string MessageType, string MessageName, int?MessageOrder)
        {
            HoadonTrangthai item = new HoadonTrangthai();

            item.MarkOld();
            item.IsLoaded = true;

            item.MessageId = MessageId;

            item.MessageType = MessageType;

            item.MessageName = MessageName;

            item.MessageOrder = MessageOrder;

            item.Save(UserName);
        }
 public bool Destroy(object MessageId)
 {
     return(HoadonTrangthai.Destroy(MessageId) == 1);
 }
 public bool Delete(object MessageId)
 {
     return(HoadonTrangthai.Delete(MessageId) == 1);
 }