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; } }
public AccBNL() { Connector = new AccDAL(); }