示例#1
0
        public ActionResult Pay(int id)
        {
            var action = new InvestmentPayRequest(id);

            try
            {
                ActionStation.Invoke <InvestmentPayRequest>(action);
            }
            catch (BusinessException ex)
            {
                TempData["ActionResponse"] = ex.Message;
            }
            return(RedirectToAction("Index", new { id = action.InvestmentId }));
        }
示例#2
0
        public ActionResult Create(InvestViewModel vm)
        {
            var action = new InvestmentCreateRequest(_sequenceService.Next(SequenceID.ACE_Investment, 1), vm.AccountId, vm.ProjectId, vm.Amount);

            try
            {
                ActionStation.Invoke <InvestmentCreateRequest>(action);
            }
            catch (BusinessException ex)
            {
                TempData["ActionResponse"] = ex.Message;
            }
            return(RedirectToAction("Index", new { id = action.InvestmentId }));
        }