public static DateTime GetTimeServer() { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.GetTimeServer()); } }
/// <summary> /// Hàm sử dụng ở điều xe /// </summary> /// <param name="id"></param> /// <returns></returns> public List <DUONGDAI_KHACHHEN> GetByTime(DateTime?id) { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.GetByTime(id).ToList <DUONGDAI_KHACHHEN>()); } }
public List <DUONGDAI_KHACHHEN> DieuxeTimKiem(DateTime?dt, string dienthoai, string diachi, string tenkhachhang) { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.DieuxeTimKiem(dt, dienthoai, diachi, tenkhachhang).ToList <DUONGDAI_KHACHHEN>()); } }
public List <DUONGDAI_KHACHHEN> GetLichSu(long id) { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.GetLichSu(id).ToList <DUONGDAI_KHACHHEN>()); } }
public List <DUONGDAI_KHACHHEN> TimKiem(DateTime deStart, DateTime deEnd, string sdt, string diaChi) { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.TimKiem(deStart, deEnd, sdt, diaChi).ToList <DUONGDAI_KHACHHEN>()); } }
/// <summary> /// Gets all. /// </summary> /// <returns>DataTable.</returns> public DataTable GetAll() { using (var db = new DUONGDAI_KHACHHEN_DA()) { return(db.GetAll()); } }
/// <summary> /// Inserts this instance. /// </summary> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool Insert() { using (var db = new DUONGDAI_KHACHHEN_DA()) { db.CopyTo(this); return(db.Insert()); } }
/// <summary> /// Updates this instance. /// </summary> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool Update() { using (var db = new DUONGDAI_KHACHHEN_DA()) { db.CopyTo(this); return(db.Update()); } }
/// <summary> /// Deletes this instance. /// </summary> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public bool Delete() { using (var db = new DUONGDAI_KHACHHEN_DA()) { db.Id = this.Id; db.UpdatedBy = this.UpdatedBy; return(db.Delete()); } }