private static int InsertUpdateDelete(TaiKhoanInfo taiKhoanInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_TaiKhoan, "@" + TableTaiKhoan.TenTaiKhoan, taiKhoanInfo.TenTaiKhoan, taiKhoanInfo.MatKhau, taiKhoanInfo.ChucNang, taiKhoanInfo.Quyen, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(TaiKhoanInfo taiKhoanInfo) { return(InsertUpdateDelete(taiKhoanInfo, DataProviderAction.Delete)); }