public static void DeleteAccountFromDatabase(string module) { try { string strQuery = "Delete FROM Account"; DataBaseHandler.SelectQuery(strQuery, "Account"); } catch (Exception ex) { Console.Write(ex.Message); } }
public DataTable selectFollowersDetailswithUser(string userName) { try { //List<string> lstAccount = new List<string>(); string strQuery = "SELECT * FROM FollowerDetails where UserName='******'"; DataTable dt = DataBaseHandler.SelectQuery(strQuery, "FollowerDetails"); //DataTable dt = ds.Tables["FollowerDetails"]; return(dt); } catch (Exception) { return(new DataTable()); } }
public DataTable SelectAccoutsForGridView(string module, string accountusername) { try { //List<string> lstAccount = new List<string>(); string strQuery = "SELECT * FROM Account where UserName='******'"; DataTable dt = DataBaseHandler.SelectQuery(strQuery, "Account"); //DataTable dt = ds.Tables["AccountManager"]; return(dt); } catch (Exception) { return(new DataTable()); } }