Example #1
0
        public void Update(string Column, bool Value, string Where)
        {
            AccDAL item  = new AccDAL();
            string Query = "";

            try
            {
                if (Where != null)
                {
                    Query += @"UPDATE Account SET " + Column + " = '" + Value + "' " + " Where " + Where;
                }
                else
                {
                    Query += @"UPDATE Account SET " + Column + " = '" + Value + "' ";
                }
                item.ChangeData(Query);
                Connector.CloseConnection();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #2
0
 public AccBNL()
 {
     Connector = new AccDAL();
 }