private static int InsertUpdateDelete(LoaiInfo loaiInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_Loai, "@" + TableLoai.MaLoai, loaiInfo.MaLoai, loaiInfo.TenLoai, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(LoaiInfo loaiInfo) { return(InsertUpdateDelete(loaiInfo, DataProviderAction.Delete)); }