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