Example #1
0
        public ActionResult CalcFeeAmt(int cashType, string transAmt)
        {
            decimal tAmt = 0;

            decimal.TryParse(transAmt, out tAmt);
            ServiceFeesLogic logic = new ServiceFeesLogic();
            M_WithdrawalCash mwc   = logic.GetWithdrawalCashFees(cashType, tAmt);

            if (mwc == null)
            {
                return(Content("0.00"));
            }
            return(Content(mwc.ServiceFees.ToString("0.00")));
        }
Example #2
0
        public ResultInfo <string> CashServiceFees(RequestParam <CashServiceFeesRequest> reqst)
        {
            var ri = new ResultInfo <string>("99999");

            ri.body = "0.00";
            using (ServiceFeesLogic logic = new ServiceFeesLogic())
            {
                var item = logic.GetWithdrawalCashFees(reqst.body.WithdrawalType, reqst.body.WithdrawalAmount);
                ri.body = item.ServiceFees.ToString();
            }
            ri.code    = "1";
            ri.message = Settings.Instance.GetErrorMsg(ri.code);
            return(ri);
        }