Exemple #1
0
        public void Insert(Guid Id, string HoTen, string DiaChi, string Sdt, DateTime NgayTao, string NguoiTao, DateTime?NgayCapNhat, string NguoiCapNhat, bool TrangThai)
        {
            TblKhachHang item = new TblKhachHang();

            item.Id = Id;

            item.HoTen = HoTen;

            item.DiaChi = DiaChi;

            item.Sdt = Sdt;

            item.NgayTao = NgayTao;

            item.NguoiTao = NguoiTao;

            item.NgayCapNhat = NgayCapNhat;

            item.NguoiCapNhat = NguoiCapNhat;

            item.TrangThai = TrangThai;


            item.Save(UserName);
        }
Exemple #2
0
 public bool Destroy(object Id)
 {
     return(TblKhachHang.Destroy(Id) == 1);
 }
 public TblKhachHang Update(TblKhachHang item)
 {
     item.Save(UserName);
     return(item);
 }
Exemple #4
0
 public bool Delete(object Id)
 {
     return(TblKhachHang.Delete(Id) == 1);
 }
 public TblKhachHang Insert(TblKhachHang item)
 {
     item.Save(UserName);
     return(item);
 }