Esempio n. 1
0
 public static DataTable GetDataCityByName(string name)
 {
     return(DAO.GetDataTable("SELECT * FROM Cities WHERE CityName = N\'" + name + "\' ORDER BY CityID"));
 }
Esempio n. 2
0
 public static DataTable GetDataUsersByEmail(string email)
 {
     return(DAO.GetDataTable("SELECT * FROM Users WHERE Email LIKE '%" + email + "%'"));
 }
Esempio n. 3
0
 /// <summary>
 /// Get cities
 /// </summary>
 /// <returns></returns>
 public static DataTable GetDataCity()
 {
     return(DAO.GetDataTable("SELECT * FROM Cities ORDER BY CityID"));
 }
Esempio n. 4
0
 /// <summary>
 /// Get all users
 /// </summary>
 /// <returns>user datatable</returns>
 public static DataTable GetDataUsers()
 {
     return(DAO.GetDataTable("SELECT * FROM Users"));
 }