Exemple #1
0
        private static int InsertUpdateDelete(HangHoaInfo hangHoaInfo, DataProviderAction action)
        {
            int rs = DataProvider.Instance().InsertUpdateDelete(
                action,
                StoredProcedureName.InsertUpdateDelete_HangHoa,
                "@" + TableHangHoa.MaHH,
                hangHoaInfo.MaHH, hangHoaInfo.TenHH, hangHoaInfo.SoLuong, hangHoaInfo.NhaCC, hangHoaInfo.MaLoai, hangHoaInfo.DonViTinh, hangHoaInfo.Hinh, hangHoaInfo.TinhNang,
                (int)action);

            if (rs > 0 && Cache)
            {
                DataCache.RemoveCache(Key);
            }
            return(rs);
        }
Exemple #2
0
 public static int Delete(HangHoaInfo hangHoaInfo)
 {
     return(InsertUpdateDelete(hangHoaInfo, DataProviderAction.Delete));
 }