public void update(ModelTransactions MT)
        {
            if (MT == null) return;

            DLTransactions DT = new DLTransactions();
            DT.update(MT);
        }
        public void add(ModelTransactions MT)
        {
            if (MT == null) return;

            DLTransactions DT = new DLTransactions();
            DT.add(MT);
        }
        private ModelTransactions GetFieldValuesTransaction()
        {
            string ErrMsg = "";
            ModelTransactions MT = new ModelTransactions();

            try
            {
                if (txtTransactionID.Text != "") MT.Transaction_ID = Convert.ToInt32(txtTransactionID.Text);
                MT.Date = Convert.ToDateTime(txtDate.Text);
                MT.Customer_ID = txtCustomerID.Text;

                return MT;
            }
            catch (Exception ex)
            {
                ErrMsg = ex.Message.ToString();
                ViewState["WithErrorTransaction"] = true;
                return null;
            }
            finally
            {
                MT.Dispose();
            }
        }
 private void FillFieldsTransaction(ModelTransactions MT)
 {
     txtTransactionID.Text = MT.Transaction_ID.ToString();
     txtDate.Text = MT.Date.ToString();
     txtCustomerID.Text = MT.Customer_ID;
 }