public async Task <JsonResult> BonusTransaction(BonusTransaction bonusTransaction, string tenantUid)
        {
            var origin = TenantHelper.GetCurrentTenantUrl(contentService, tenantUid);
            var token  = Request.Cookies["token"].Value;

            var response = (BonusTransactionResponseContent)await _transactionHistoryService.BonusTransaction(tenantUid, token, origin, bonusTransaction);

            return(Json(response));
        }
 private void detach_BonusTransactions(BonusTransaction entity)
 {
     this.SendPropertyChanging("BonusTransactions");
     entity.BonusPlanDetail = null;
 }
 private void attach_BonusTransactions(BonusTransaction entity)
 {
     this.SendPropertyChanging("BonusTransactions");
     entity.Dealer = this;
 }
 private void detach_BonusTransactions(BonusTransaction entity)
 {
     this.SendPropertyChanging("BonusTransactions");
     entity.OrderHeader = null;
 }
        public async Task <IResponseContent> BonusTransaction(string tenantUid, string token, string origin, BonusTransaction bonusTransaction)
        {
            var customerGuid = DecodeJwt(token).CustomerGuid;

            bonusTransaction.CustomerGuid = customerGuid;

            var response = await SubmitPostAsync(URL_API_BONUS_TRANSACTION, origin, bonusTransaction, token, tenantUid);

            var responseContent = AssertResponseContent <BonusTransactionResponseContent>(response);

            return(responseContent);
        }