Beispiel #1
0
 public static int Them(ThanhVien nd)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@IDNguoiDung", "ThanhVien_Them", nd.IDNguoiDung,
            nd.TenDangNhap, nd.MatKhau, nd.TenNguoiDung, nd.ChucVu, nd.DiaChi, nd.NgaySinh, nd.SoDT, nd.NgayCapNhat);
         return Convert.ToInt32(rs);
     }
     catch
     {
         return 0;
     }
 }
Beispiel #2
0
 public static bool Sua(ThanhVien nd)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQuery("ThanhVien_Sua", nd.IDNguoiDung, nd.TenDangNhap, nd.MatKhau, nd.TenNguoiDung, nd.ChucVu, nd.DiaChi, nd.NgaySinh, nd.SoDT, nd.NgayCapNhat);
         return Convert.ToInt32(rs) > 0;
     }
     catch
     {
         return false;
     }
 }