コード例 #1
0
        public void Delete_Test()
        {
            using (var trans = TransHelper.NewScope())
            {
                // arrange
                var expected = LaporanDinasTestData();

                // act
                _sut.Delete(expected);
            }
        }
コード例 #2
0
        public void Delete(ILaporanDinasKey key)
        {
            var ld = _laporanDinasDal.GetData(key);

            //  proses simpan
            using (var trans = TransHelper.NewScope())
            {
                //  update ke db
                _laporanDinasDal.Delete(ld);
                //  commit changes
                trans.Complete();
            }
        }