Beispiel #1
0
 public void Insert(DB_LOG model)
 {
     _unitOfWork.dbLogRepository.Insert(model);
     #region Clear cache when insert or update
     _cacheProviderService.Invalidate("TrackingLOG");
     #endregion
 }
Beispiel #2
0
 public void InserWallet(Wallet model)
 {
     _unitOfWork.WalletRepository.Insert(model);
     #region Clear cache when insert or update
     _cacheProviderService.Invalidate("TrackingWallet");
     #endregion
 }
Beispiel #3
0
 public void InserTargetMaster(TargetMaster model)
 {
     _unitOfWork.TargetMasterRepository.Insert(model);
     #region Clear cache when insert or update
     _cacheProviderService.Invalidate("TrackingTargetMaster");
     #endregion
 }
Beispiel #4
0
 public void InserPayment(Payment model)
 {
     _unitOfWork.PaymentRepository.Insert(model);
     #region Clear cache when insert or update
     _cacheProviderService.Invalidate("TrackingPayment");
     #endregion
 }
Beispiel #5
0
 public void UpdateConfig(Config model)
 {
     _unitOfWork.ConfigRepository.Update(model);
     #region Clear cache when insert or update
     _cacheProviderService.Invalidate("TrackingConfig");
     #endregion
 }
        public CRUDResult <bool> Create(CreateBetInsertReq obj)
        {
            #region Clear cache when insert or update
            _cache.Invalidate("InfoRoom");
            #endregion

            var param = new DynamicParameters();
            param.Add("@RoomId", obj.RoomId);
            param.Add("@UserId", obj.UserId);
            param.Add("@AmountBet", obj.AmountBet);
            _repository.Value.Connection.Execute("SP_Bet_Create", param, commandType: CommandType.StoredProcedure);
            return(new CRUDResult <bool>()
            {
                Data = true, StatusCode = CRUDStatusCodeRes.Success
            });
        }