Ejemplo n.º 1
0
        private static int InsertUpdateDelete(NhanVienInfo nhanVienInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_NhanVien,
                "@" + TableNhanVien.MaNV,
                nhanVienInfo.MaNV, nhanVienInfo.TenNV, nhanVienInfo.GioiTinh, nhanVienInfo.NgaySinh, nhanVienInfo.SDT, nhanVienInfo.DiaChi, nhanVienInfo.Mail, nhanVienInfo.CMND, nhanVienInfo.Hinh, nhanVienInfo.TinhTrang, nhanVienInfo.TenTaiKhoan,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Ejemplo n.º 2
0
 public static int Delete(NhanVienInfo nhanVienInfo)
 {
     return(InsertUpdateDelete(nhanVienInfo, DataProviderAction.Delete));
 }