Example #1
0
        public bool Delete(long userId, Code toDelete)
        {
            using (var tran = new TransactionScope())
            {
                var toRet = _repository.Delete(toDelete);

                //Force cash refresh for all module entries
                CacheHelper.Clear(Module);

                BlLog.Log(userId, Module, "Delete code", "CodeDeleted", new object[] { toDelete.CodeName, toDelete.TableName });
                tran.Complete();
                return(toRet);
            }
        }